]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: gadget: f_rndis: fix interface id for OS descriptors
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Tue, 1 Jul 2014 13:47:47 +0000 (15:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 20:40:57 +0000 (13:40 -0700)
commitd5c150ba9c3bbb080a27413dd1a948bf623ae642
treee796112baaa231353fb1d8cbfe5c0ed8b10d6816
parentc20736252a485809c5b6490c5a0c88569e299a9e
usb: gadget: f_rndis: fix interface id for OS descriptors

commit 4546527350c3c508554dff53e9086e9d3de0b97b upstream.

f->os_desc_table[0].if_id is zero by default. If the actual id happens
to be different then no Feature Descriptors will be returned to the host
for this interface, so assign if_id as soon as it is known.

Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/f_rndis.c