Bin Liu 9aea9b6cc7 usb: musb: trace: fix NULL pointer dereference in musb_g_tx()
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: fc78003e5345 ("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-04-30 09:52:17 -07:00
..
2018-01-09 16:15:19 +01:00
2018-03-26 15:57:12 +02:00
2018-03-26 15:57:12 +02:00
2018-03-26 15:57:12 +02:00
2018-04-04 17:55:35 -07:00
2018-03-26 15:57:12 +02:00
2018-03-26 15:57:12 +02:00
2018-03-26 15:57:12 +02:00
2018-03-26 15:57:12 +02:00