aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2018-07-04 13:34:06 +0100
committerGreg Kroah-Hartman <[email protected]>2018-07-06 16:36:19 +0200
commit9920184d78edeccd165832d54d6203fae4c860f5 (patch)
treeb1e52ab458c7f0d9fe38c10e52b1dc02ba4c4aaf /tools/perf/util/trace-event-scripting.c
parent6f3fde684d0232e66ada3410f016a58e09a87689 (diff)
usb: typec: fix dereference before null check on adev
Pointer adev is being dereferenced before it is being sanity checked with a null pointer check, hence it is possible for a null pointer dereference to occur. Fix this by dereferencing adev only once it is null checked. Detected by CoverityScan, CID#1471598 ("Dereference before null check") Fixes: 8a37d87d72f0 ("usb: typec: Bus type for alternate modes") Signed-off-by: Colin Ian King <[email protected]> Acked-by: Heikki Krogerus <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions