]> git.baikalelectronics.ru Git - kernel.git/commit
USB: Gadget: Composite: Debug interface comparison
authorJassi Brar <jassi.brar@samsung.com>
Sun, 6 Feb 2011 08:39:17 +0000 (17:39 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 18:41:46 +0000 (10:41 -0800)
commited3dcdf14840a7353d4b62eb5a51fa5e5a5323cd
tree35803a695566a4f9daa921dcf87405ef679db885
parent541f7abe45df26e9d038a39b0a7e4051e0d8aa59
USB: Gadget: Composite: Debug interface comparison

While checking valid interface number we should compare MAX_CONFIG_INTERFACES
with the variable 'intf' (which holds the lower 8bits of w_index) rather than
'w_index'

Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/composite.c