linux/drivers/usb/renesas_usbhs
Kazuya Mizuguchi 11432050f0 usb: renesas_usbhs: gadget: fix NULL pointer dereference in ep_disable()
This patch fixes an issue that the NULL pointer dereference happens
when we uses g_audio driver. Since the g_audio driver will call
usb_ep_disable() in afunc_set_alt() before it calls usb_ep_enable(),
the uep->pipe of renesas usbhs driver will be NULL. So, this patch
adds a condition to avoid the oops.

Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fixes: 2f98382dc (usb: renesas_usbhs: Add Renesas USBHS Gadget)
Cc: <stable@vger.kernel.org> # v3.0+
Signed-off-by: Felipe Balbi <balbi@ti.com>
2014-11-05 13:22:05 -06:00
..
common.c usb: renesas_usbhs: common: remove duplicate check on resource 2014-11-03 10:01:20 -06:00
common.h usb: renesas_usbhs: add support for generic PHY 2014-11-03 10:00:56 -06:00
fifo.c usb: renesas_usbhs: fix the usb_pkt_pop() 2014-09-03 09:15:58 -05:00
fifo.h usb: renesas: remove unused DMA_ADDR_INVALID 2013-03-18 11:18:13 +02: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: fix NULL pointer dereference in ep_disable() 2014-11-05 13:22:05 -06:00
mod_host.c usb: hcd: move controller wakeup setting initialization to individual driver 2013-12-08 18:06:46 -08: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 the behavior of some usbhs_pkt_handle 2014-09-03 09:15:57 -05: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