projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b7304f
)
[SCSI] ipr: Auto sense handling fix
author
Brian King
<brking@us.ibm.com>
Wed, 2 Aug 2006 19:57:58 +0000
(14:57 -0500)
committer
James Bottomley
<jejb@mulgrave.il.steeleye.com>
Sun, 6 Aug 2006 20:50:50 +0000
(15:50 -0500)
Fix up a logic error in the checking for valid sense data.
Signed-off-by: Brian King <brking@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/ipr.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/ipr.c
b/drivers/scsi/ipr.c
index 55c0156e36b063c1645b844d0bd1334814e7b83c..7ed4eef8347b2f719d132407886549a0563bd318 100644
(file)
--- a/
drivers/scsi/ipr.c
+++ b/
drivers/scsi/ipr.c
@@
-4127,8
+4127,7
@@
static int ipr_get_autosense(struct ipr_cmnd *ipr_cmd)
{
struct ipr_ioasa *ioasa = &ipr_cmd->ioasa;
- if ((be32_to_cpu(ioasa->ioasc_specific) &
- (IPR_ADDITIONAL_STATUS_FMT | IPR_AUTOSENSE_VALID)) == 0)
+ if ((be32_to_cpu(ioasa->ioasc_specific) & IPR_AUTOSENSE_VALID) == 0)
return 0;
memcpy(ipr_cmd->scsi_cmd->sense_buffer, ioasa->auto_sense.data,