hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/scsi/libsas/sas_ata.c
....@@ -122,9 +122,10 @@
122122 }
123123 }
124124
125
- if (stat->stat == SAS_PROTO_RESPONSE || stat->stat == SAM_STAT_GOOD ||
126
- ((stat->stat == SAM_STAT_CHECK_CONDITION &&
127
- dev->sata_dev.class == ATA_DEV_ATAPI))) {
125
+ if (stat->stat == SAS_PROTO_RESPONSE ||
126
+ stat->stat == SAS_SAM_STAT_GOOD ||
127
+ (stat->stat == SAS_SAM_STAT_CHECK_CONDITION &&
128
+ dev->sata_dev.class == ATA_DEV_ATAPI)) {
128129 memcpy(dev->sata_dev.fis, resp->ending_fis, ATA_RESP_FIS_SIZE);
129130
130131 if (!link->sactive) {