aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorRoland Dreier <[email protected]>2013-10-08 16:47:22 +0000
committerNicholas Bellinger <[email protected]>2013-10-09 08:54:44 +0000
commit2053a1db41193c2b5e1f47a91aaba0fd63ba7102 (patch)
tree544cf5b3067cb554e11c2bcc0dd8aa9d6230758a /tools/perf/util/scripting-engines/trace-event-python.c
parenttarget: Reject EXTENDED_COPY when emulate_3pc is disabled (diff)
downloadkernel-2053a1db41193c2b5e1f47a91aaba0fd63ba7102.tar.gz
kernel-2053a1db41193c2b5e1f47a91aaba0fd63ba7102.zip
target: Fix assignment of LUN in tracepoints
The unpacked_lun field in the SCSI target tracepoints should be initialized with cmd->orig_fe_lun rather than cmd->se_lun->unpacked_lun for two reasons: - most importantly, if we are in the cmd_complete tracepoint returning a check condition due to no LUN found, cmd->se_lun will be NULL and we'll crash trying to dereference it. - also, in any case, cmd->se_lun->unpacked_lun is an internal index into the target's internal set of LUNs; cmd->orig_fe_lun is much more useful and interesting, since it's the value the initiator actually sent. Signed-off-by: Roland Dreier <[email protected]> Cc: <[email protected]> # 3.11+ Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions