linux-stable/drivers/usb/musb
Bin Liu 87fa7da673 usb: musb: trace: fix NULL pointer dereference in musb_g_tx()
commit 9aea9b6cc7 upstream.

The usb_request pointer could be NULL in musb_g_tx(), where the
tracepoint call would trigger the NULL pointer dereference failure when
parsing the members of the usb_request pointer.

Move the tracepoint call to where the usb_request pointer is already
checked to solve the issue.

Fixes: fc78003e53 ("usb: musb: gadget: add usb-request tracepoints")
Cc: stable@vger.kernel.org # v4.8+
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-09 09:51:55 +02:00
..
am35x.c usb: musb: am35x: remove redundant code 2017-02-03 10:05:10 +01:00
blackfin.c usb: musb: blackfin: fix unused warnings on suspend/resume 2017-02-03 10:05:11 +01:00
blackfin.h
cppi_dma.c usb: musb: cppi_dma.c: use DIV_ROUND_UP macro in cppi_next_(r|t)x_segment() 2017-04-18 16:48:26 +02:00
cppi_dma.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
da8xx.c usb: musb: da8xx: fix babble condition handling 2017-12-20 10:10:38 +01:00
davinci.c usb: musb: davinci: remove redundant code 2017-02-03 10:05:10 +01:00
davinci.h
jz4740.c usb: musb: constify musb_hdrc_config structures 2017-01-25 10:52:43 +01:00
Kconfig usb: musb: Add support of CPPI 4.1 DMA controller to DA8xx 2017-04-18 16:48:26 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
musb_am335x.c
musb_core.c usb: musb: Fix external abort in musb_remove on omap2430 2018-04-26 11:02:03 +02:00
musb_core.h USB: musb: fix late external abort on suspend 2017-10-17 11:42:51 +02:00
musb_cppi41.c usb: musb: musb_cppi41: Configure the number of channels for DA8xx 2017-10-17 11:42:51 +02:00
musb_debug.h
musb_debugfs.c usb: musb: debugfs: allow forcing host mode together with speed in testmode 2017-02-03 10:05:11 +01:00
musb_dma.h usb: musb: dma: Add a DMA completion platform callback 2017-02-09 13:35:05 +01:00
musb_dsps.c USB: musb: dsps: add explicit runtime resume at suspend 2017-08-28 10:51:56 +02:00
musb_gadget.c usb: musb: trace: fix NULL pointer dereference in musb_g_tx() 2018-05-09 09:51:55 +02:00
musb_gadget.h
musb_gadget_ep0.c usb: musb: gadget: misplaced out of bounds check 2018-04-24 09:36:23 +02:00
musb_host.c usb: musb: host: fix potential NULL pointer dereference 2018-05-09 09:51:55 +02:00
musb_host.h
musb_io.h
musb_regs.h
musb_trace.c
musb_trace.h
musb_virthub.c USB: musb: remove obsolete resume-signalling comments 2016-11-21 17:35:36 +01:00
musbhsdma.c
musbhsdma.h usb: musb: Fix trying to free already-free IRQ 4 2017-01-05 19:18:05 +01:00
omap2430.c usb: musb: omap2430: constify dev_pm_ops structures 2017-02-03 10:05:11 +01:00
omap2430.h
sunxi.c usb: musb: sunxi: Explicitly release USB PHY on exit 2017-10-17 11:42:51 +02:00
tusb6010.c usb: musb: tusb6010: Handle DMA TX completion in DMA callback as well 2017-06-20 11:45:01 +08:00
tusb6010.h
tusb6010_omap.c usb: musb: tusb6010_omap: Convert to DMAengine API 2017-06-20 11:45:01 +08:00
ux500.c usb: musb: constify musb_hdrc_config structures 2017-01-25 10:52:43 +01:00
ux500_dma.c