aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2017-07-06 16:06:32 +0100
committerGreg Kroah-Hartman <[email protected]>2017-07-17 13:11:57 +0200
commit446230f52a5bef593554510302465eabab45a372 (patch)
tree77ae0ac884bb89ddb91c43d44808b4af44f4e4f4 /tools/perf/scripts/python/call-graph-from-sql.py
parent86be7f7b2d940ddc18143061e77989b017d93bf8 (diff)
usb: storage: return on error to avoid a null pointer dereference
When us->extra is null the driver is not initialized, however, a later call to osd200_scsi_to_ata is made that dereferences us->extra, causing a null pointer dereference. The code currently detects and reports that the driver is not initialized; add a return to avoid the subsequent dereference issue in this check. Thanks to Alan Stern for pointing out that srb->result needs setting to DID_ERROR << 16 Detected by CoverityScan, CID#100308 ("Dereference after null check") Signed-off-by: Colin Ian King <[email protected]> Cc: stable <[email protected]> Acked-by: Alan Stern <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions