aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMike Christie <[email protected]>2023-10-04 16:00:13 -0500
committerMartin K. Petersen <[email protected]>2023-10-13 16:36:20 -0400
commitf7d7129c6c24168b9be7709b0b37767b5f743cf3 (patch)
tree41aa5ffc93b5f0a1edf58310c630d99e8cbc4ea7 /tools/perf/scripts/python/stackcollapse.py
parentc8b7ef36da0372d52e55cd1b7f1ac2b285eb2680 (diff)
scsi: sr: Fix sshdr use in sr_get_events
If scsi_execute_cmd returns < 0, it doesn't initialize the sshdr, so we shouldn't access the sshdr. If it returns 0, then the cmd executed successfully, so there is no need to check the sshdr. This has us access the sshdr when we get a return value > 0. Signed-off-by: Mike Christie <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: John Garry <[email protected]> Reviewed-by: Martin Wilck <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions