]> git.baikalelectronics.ru Git - kernel.git/commit
usb: renesas_usbhs: fixup: avoid NULL access on error case pipe detach
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 17 Oct 2012 06:31:33 +0000 (23:31 -0700)
committerFelipe Balbi <balbi@ti.com>
Tue, 23 Oct 2012 06:44:08 +0000 (09:44 +0300)
commitb5be2d1a60157b60859af2ed6ec514a6f49a38d8
treec2fe9ec27d22d8595672c0100dd8c70895f96480
parenta5f6c115eff114c6bb7a2bc4e18317bbde79f313
usb: renesas_usbhs: fixup: avoid NULL access on error case pipe detach

If renesas_usbhs or DMAEngine interrupt didn't happen by a certain cause,
urb->ep will be NULL by usb time out.
Then, host mode will access to it and crash kernel.
This patch fixes it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/mod_host.c