]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit138a3a91266b40e087230a8140ae68d6f24f18cc
tree7422c797f8d6d0ee64bfc11b3dbcb6e8355393e5
parent49daa753caae51fbd332734e7b858b3d631bfec5
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