[SCSI] libiscsi: check that command ptr is set before accessing it
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 31 Aug 2006 22:09:33 +0000 (18:09 -0400)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sat, 2 Sep 2006 18:37:36 +0000 (13:37 -0500)
commitf47f2cf5d4acf929a3aaa6957c3fc4622c358703
tree6bf770ac6a789f926728b1881a7eee64a463404f
parentca5186842a6d85e982e3d572ecd407453d0c5116
[SCSI] libiscsi: check that command ptr is set before accessing it

If the scsi eh sends a TUR and the session is down we could
return SCSI_ML_HOST_BUSY. scsi eh will ignore this and send
ask us to abort the command and we blindly accesst the
command ptr.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/libiscsi.c