mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
cciss: fix incorrect scsi status reporting
commitb0cf0b118cupstream. Delete code which sets SCSI status incorrectly as it's already been set correctly above this incorrect code. The bug was introduced in 2009 by commitb0e15f6db1("cciss: fix typo that causes scsi status to be lost.") Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Reported-by: Roel van Meer <roel.vanmeer@bokxing.nl> Tested-by: Roel van Meer <roel.vanmeer@bokxing.nl> Cc: Jens Axboe <axboe@kernel.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b8e52a4288
commit
06c7487097
@@ -763,16 +763,7 @@ static void complete_scsi_command(CommandList_struct *c, int timeout,
|
||||
{
|
||||
case CMD_TARGET_STATUS:
|
||||
/* Pass it up to the upper layers... */
|
||||
if( ei->ScsiStatus)
|
||||
{
|
||||
#if 0
|
||||
printk(KERN_WARNING "cciss: cmd %p "
|
||||
"has SCSI Status = %x\n",
|
||||
c, ei->ScsiStatus);
|
||||
#endif
|
||||
cmd->result |= (ei->ScsiStatus << 1);
|
||||
}
|
||||
else { /* scsi status is zero??? How??? */
|
||||
if (!ei->ScsiStatus) {
|
||||
|
||||
/* Ordinarily, this case should never happen, but there is a bug
|
||||
in some released firmware revisions that allows it to happen
|
||||
|
||||
Reference in New Issue
Block a user