]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[SCSI] libiscsi: fix null ptr regression when aborting a command with data to transfer
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 15 Aug 2007 06:38:29 +0000 (01:38 -0500)
committerJames Bottomley <jejb@mulgrave.localdomain>
Wed, 15 Aug 2007 18:08:14 +0000 (13:08 -0500)
commit96809f1b15eddae2325b2ab78e6f931edc969074
treedc260207b281e0f078f7b560a178565968109383
parent604cd794de3094ccf8a9c149f299237a642ba9b5
[SCSI] libiscsi: fix null ptr regression when aborting a command with data to transfer

We do not want to send data if we are aborting a task. There is
a check in iscsi_xmit_ctask, but right before calling this we overwrite
the state so we always go right past the test. Sending data causes problems
because when we clean up from a successful abort the LLD assumes that
the task is not running.

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