mirror of https://gitee.com/openkylin/linux.git
scsi: pcmcia: nsp_cs: Use SAM_STAT_CHECK_CONDITION
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>
This commit is contained in:
parent
14b40c1e7c
commit
5020714895
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue