From: Mike Christie Date: Thu, 5 Mar 2009 20:46:07 +0000 (-0600) Subject: [SCSI] libiscsi: fix possbile null ptr session command cleanup X-Git-Tag: v2.6.30-rc1~641^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=728996829b3e2a3bbacb7390e6c040dd839cdf21;p=pandora-kernel.git [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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed