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:
1e0fdfc
)
staging: rts_pstor: Fix invalid check
author
Alan Cox
<alan@linux.intel.com>
Tue, 4 Sep 2012 14:23:46 +0000
(15:23 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 19:26:46 +0000
(12:26 -0700)
As noted by David Binderman
Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=46581
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts_pstor/rtsx_scsi.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rts_pstor/rtsx_scsi.c
b/drivers/staging/rts_pstor/rtsx_scsi.c
index f2e5842d4c90a0e2dac27267bb83b7bf7ea515a7..936b82ddd4e2cf3274aac776d2c4c519a58e5b8d 100644
(file)
--- a/
drivers/staging/rts_pstor/rtsx_scsi.c
+++ b/
drivers/staging/rts_pstor/rtsx_scsi.c
@@
-2482,7
+2482,7
@@
static int spi_vendor_cmd(struct scsi_cmnd *srb, struct rtsx_chip *chip)
unsigned int lun = SCSI_LUN(srb);
u8 gpio_dir;
- if (CHECK_PID(chip, 0x5208)
&&
CHECK_PID(chip, 0x5288)) {
+ if (CHECK_PID(chip, 0x5208)
||
CHECK_PID(chip, 0x5288)) {
set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD);
TRACE_RET(chip, TRANSPORT_FAILED);
}