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)
commitff085de758ebcb2309dd013fecb7cbb3cb6c7a43
tree35803a695566a4f9daa921dcf87405ef679db885
parent66b0835e2bb3d345f060a47bb8c8f883bd25ec2b
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