diff options
author | 2018-04-30 11:20:54 -0500 | |
---|---|---|
committer | 2018-04-30 09:52:17 -0700 | |
commit | 9aea9b6cc78d2b99b23d84fb2e0bc6e464c6569e (patch) | |
tree | 9cc53a135cd4ec44af2ee6f0059045e9911c76cb /tools/perf/scripts/python/export-to-sqlite.py | |
parent | usb: musb: host: fix potential NULL pointer dereference (diff) | |
download | wireguard-linux-9aea9b6cc78d2b99b23d84fb2e0bc6e464c6569e.tar.xz wireguard-linux-9aea9b6cc78d2b99b23d84fb2e0bc6e464c6569e.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions