diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2015-01-30 07:58:23 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-30 17:35:37 +0100 |
commit | ffb9da65755815611010e07ad1c937858f226cb2 (patch) | |
tree | 45e5c58be6ab7fe6965e700fae0a556b33e30f9d /.gitignore | |
parent | usb: phy: generic: fix the vbus interrupt request (diff) | |
download | linux-ffb9da65755815611010e07ad1c937858f226cb2.tar.xz linux-ffb9da65755815611010e07ad1c937858f226cb2.zip |
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 abd2dbf6bb1b5f3a03a8c76b1a8879da1dd30caa)
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>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions