[SCSI] be2iscsi: fix null ptr when accessing task hdr
authorMike Christie <michaelc@cs.wisc.edu>
Fri, 31 Dec 2010 08:22:20 +0000 (02:22 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 31 Dec 2010 15:52:42 +0000 (09:52 -0600)
If alloc_pdu fails then the task->hdr pointer may not be
set. This adds a check for this case in the cleanup callback.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

No differences found