Skip to content

Commit

Permalink
staging: rts_pstor: Fix invalid check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent 1e0fdfc commit 0ff15d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/rts_pstor/rtsx_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0ff15d5

Please sign in to comment.