Roland Dreier 2053a1db41 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 <roland@purestorage.com>
Cc: <stable@vger.kernel.org> # 3.11+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2013-10-09 01:54:44 -07:00
..
2013-05-28 13:42:08 -05:00
2012-04-23 13:15:35 +01:00
2013-06-26 17:09:15 -07:00
2013-08-28 14:47:06 -04:00
2013-04-29 15:54:28 -07:00
2012-12-18 15:02:12 -08:00
2013-04-22 12:32:43 +02:00
2013-06-23 11:52:58 +02:00
2013-09-10 18:56:32 -04:00