mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 09:13:20 -05:00
scsi: nsp32: Fixup status handling
SCp.status is always the SAM-defined status value, not the Linux ones. Fixup the one wrong definition. Link: https://lore.kernel.org/r/20210113090500.129644-12-hare@suse.de Reviewed-by: Christoph Hellwig <hch@lst.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
0eb198d2c3
commit
23d339f08f
1 changed files with 1 additions and 1 deletions
|
@ -935,7 +935,7 @@ static int nsp32_queuecommand_lck(struct scsi_cmnd *SCpnt, void (*done)(struct s
|
||||||
|
|
||||||
SCpnt->scsi_done = done;
|
SCpnt->scsi_done = done;
|
||||||
data->CurrentSC = SCpnt;
|
data->CurrentSC = SCpnt;
|
||||||
SCpnt->SCp.Status = CHECK_CONDITION;
|
SCpnt->SCp.Status = SAM_STAT_CHECK_CONDITION;
|
||||||
SCpnt->SCp.Message = 0;
|
SCpnt->SCp.Message = 0;
|
||||||
scsi_set_resid(SCpnt, scsi_bufflen(SCpnt));
|
scsi_set_resid(SCpnt, scsi_bufflen(SCpnt));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue