2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-30 16:13:54 +08:00
linux-next/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
..
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 usb: renesas_usbhs: expand USB-DMAC channels for R-Car Gen2 2014-11-12 09:11:31 -06:00
Kconfig usb: renesas_usbhs: fix driver dependencies 2014-09-23 21:57:22 -07:00
Makefile usb: renesas_usbhs: add R-Car Gen. 2 init and power control 2014-07-16 10:06:32 -05:00
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
mod.c usb: renesas_usbhs: protect mod->irq_{bemp,brdy}sts by spin lock 2014-09-03 09:15:57 -05:00
mod.h renesas_usbhs: cleanup quoted includes 2012-06-05 10:15:25 +02:00
pipe.c usb: renesas_usbhs: fix usbhs_pipe_clear() for DCP PIPE 2014-11-05 13:22:16 -06:00
pipe.h usb: renesas_usbhs: fix the behavior of some usbhs_pkt_handle 2014-09-03 09:15:57 -05:00
rcar2.c usb: renesas_usbhs: add support for generic PHY 2014-11-03 10:00:56 -06:00
rcar2.h usb: renesas_usbhs: add R-Car Gen. 2 init and power control 2014-07-16 10:06:32 -05:00