aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/libata-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 10933cb722e6..41659448a204 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -1140,7 +1140,7 @@ static int ata_dev_read_id(struct ata_port *ap, struct ata_device *dev,
1140 swap_buf_le16(id, ATA_ID_WORDS); 1140 swap_buf_le16(id, ATA_ID_WORDS);
1141 1141
1142 /* sanity check */ 1142 /* sanity check */
1143 if ((class == ATA_DEV_ATA) != ata_id_is_ata(id)) { 1143 if ((class == ATA_DEV_ATA) != (ata_id_is_ata(id) | ata_id_is_cfa(id))) {
1144 rc = -EINVAL; 1144 rc = -EINVAL;
1145 reason = "device reports illegal type"; 1145 reason = "device reports illegal type";
1146 goto err_out; 1146 goto err_out;