linux/drivers/usb/renesas_usbhs
Yoshihiro Shimoda ffb9da6575 usb: renesas_usbhs: fix NULL pointer dereference in dma_release_channel()
This patch fixes an issue that the following commit causes NULL
pointer dereference in dma_release_channel().
 "usb: renesas_usbhs: add support for requesting DT DMA"
 (commit id abd2dbf6bb)

The usbhsf_dma_init_dt() should set fifo->{t,r}x_chan to NULL if
dma_request_slave_channel_reason() returns IS_ERR value.
Otherwise, usbhsf_dma_quit() will call dma_release_channel(), and then
NULL pointer dereference happens.

Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Simon Horman <horms+renesas@verge.net.au>
Reported-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-01-30 10:35:37 -06:00
..
Kconfig
Makefile
common.c usb: renesas_usbhs: add OTG ID signal sensing 2015-01-12 15:36:28 -06:00
common.h usb: renesas_usbhs: add OTG ID signal sensing 2015-01-12 15:36:28 -06:00
fifo.c usb: renesas_usbhs: fix NULL pointer dereference in dma_release_channel() 2015-01-30 10:35:37 -06:00
fifo.h
mod.c
mod.h
mod_gadget.c usb: renesas_usbhs: gadget: set value for common is_selfpowered 2015-01-29 10:32:51 -06:00
mod_host.c usb: renesas_usbhs: mod_host: use HUB_CHAR_* 2015-01-27 09:34:57 -06:00
pipe.c
pipe.h
rcar2.c
rcar2.h