diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2009-03-05 14:46:07 -0600 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-03-13 15:29:54 -0500 |
commit | 728996829b3e2a3bbacb7390e6c040dd839cdf21 (patch) | |
tree | e2e0b41faa980aeb78c0cd407dec26c73a8c7514 /drivers/scsi/sd_dif.c | |
parent | 5e7facb77ff4b6961d936773fb1f175f7abf76b7 (diff) |
[SCSI] libiscsi: fix possbile null ptr session command cleanup
If the iscsi eh fires when the current task is a nop, then
the task->sc pointer is null. fail_all_commands could
then try to do task->sc->device and oops. We actually do
not need to access the curr task in this path, because
if it is a cmd task the fail_command call will handle
this and if it is mgmt task then the flush of the mgmt
queues will handle that.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/sd_dif.c')
0 files changed, 0 insertions, 0 deletions