OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14b40c1
)
scsi: pcmcia: nsp_cs: Use SAM_STAT_CHECK_CONDITION
author
Hannes Reinecke
<hare@suse.de>
Thu, 27 May 2021 07:22:17 +0000
(09:22 +0200)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Tue, 1 Jun 2021 02:48:24 +0000
(22:48 -0400)
The nsp_cs driver stores the SAM status values in SCp.Status, so we need to
use the non-shifted version SAM_STAT_CHECK_CONDITION.
Link:
https://lore.kernel.org/r/20210527072217.117126-1-hare@suse.de
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pcmcia/nsp_cs.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/pcmcia/nsp_cs.c
b/drivers/scsi/pcmcia/nsp_cs.c
index
ac89002
..
7c0f931
100644
(file)
--- a/
drivers/scsi/pcmcia/nsp_cs.c
+++ b/
drivers/scsi/pcmcia/nsp_cs.c
@@
-221,7
+221,7
@@
static int nsp_queuecommand_lck(struct scsi_cmnd *SCpnt,
data->CurrentSC = SCpnt;
- SCpnt->SCp.Status = CHECK_CONDITION;
+ SCpnt->SCp.Status =
SAM_STAT_
CHECK_CONDITION;
SCpnt->SCp.Message = 0;
SCpnt->SCp.have_data_in = IO_UNKNOWN;
SCpnt->SCp.sent_command = 0;