]> git.karo-electronics.de Git - mv-sheeva.git/commit
[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)
commit1227633a441363642cdbaf38c4241d071e917095
tree51b7ec4bc1d56b103bf74c5273a0d2b0e70abf70
parentbc7accec8788ada4f459461194c2b8fad94ed239
[SCSI] be2iscsi: fix null ptr when accessing task hdr

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>
drivers/scsi/be2iscsi/be_main.c