usb: renesas_usbhs: return error if wrong recip request
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 21 Apr 2011 05:10:12 +0000 (14:10 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 30 Apr 2011 00:24:32 +0000 (17:24 -0700)
commit9a28b7bd4f1fb388a15b12fb425a589ba6188425
tree7422c797f8d6d0ee64bfc11b3dbcb6e8355393e5
parentcb96632c185f13f746d009ec1125539e0b5cd899
usb: renesas_usbhs: return error if wrong recip request

There are some USB Host which doesn't notice disconnection at once.
And it might try some request after reconnection with old settings.
Current renesas_usbhs will crash in such case.
This patch prevent this issue.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/renesas_usbhs/mod_gadget.c