projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d65226e
)
cciss: fix incorrect scsi status reporting
author
Stephen M. Cameron
<
[email protected]
>
Tue, 21 Aug 2012 23:15:49 +0000
(16:15 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 21 Aug 2012 23:45:02 +0000
(16:45 -0700)
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
commit
b0e15f6db111
("cciss: fix typo that causes scsi status to be
lost.")
Signed-off-by: Stephen M. Cameron <
[email protected]
>
Reported-by: Roel van Meer <
[email protected]
>
Tested-by: Roel van Meer <
[email protected]
>
Cc: Jens Axboe <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/block/cciss_scsi.c
patch
|
blob
|
history
diff --git
a/drivers/block/cciss_scsi.c
b/drivers/block/cciss_scsi.c
index acda773b3720878495d14f5ebfbe1a82f50c0f74..38aa6dda6b81d0deeb355956ead087324f41f3d1 100644
(file)
--- a/
drivers/block/cciss_scsi.c
+++ b/
drivers/block/cciss_scsi.c
@@
-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