Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Hannes Reinecke and committed by
Martin K. Petersen
50207148 14b40c1e

+1 -1
+1 -1
drivers/scsi/pcmcia/nsp_cs.c
··· 221 221 222 222 data->CurrentSC = SCpnt; 223 223 224 - SCpnt->SCp.Status = CHECK_CONDITION; 224 + SCpnt->SCp.Status = SAM_STAT_CHECK_CONDITION; 225 225 SCpnt->SCp.Message = 0; 226 226 SCpnt->SCp.have_data_in = IO_UNKNOWN; 227 227 SCpnt->SCp.sent_command = 0;