From: Michael Reed Date: Thu, 8 Dec 2005 03:46:27 +0000 (-0600) Subject: [SCSI] fix OOPS due to clearing eh_action prior to aborting eh command X-Git-Tag: v2.6.15-rc6~62^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85631672e6a8032267058b4ccbe53f1924a5d0be;p=pandora-kernel.git [SCSI] fix OOPS due to clearing eh_action prior to aborting eh command The eh_action semaphore in scsi_eh_send_command is cleared after a command timeout. The command is subsequently aborted and the abort will try to call scsi_done() on it. Unfortunately, the scsi_eh_done() routine unconditinally completes the semaphore (which is now null). Fix this race by makiong the scsi_eh_done() routine check that the semaphore is non null before completing it (mirroring the ordinary command done/timeout logic). Signed-off-by: James Bottomley --- Reading git-diff-tree failed