aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_sil.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/sata_sil.c')
-rw-r--r--drivers/ata/sata_sil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c
index 7808d0369d91..d27ab312cdfb 100644
--- a/drivers/ata/sata_sil.c
+++ b/drivers/ata/sata_sil.c
@@ -541,9 +541,9 @@ static void sil_dev_config(struct ata_port *ap, struct ata_device *dev)
541{ 541{
542 int print_info = ap->eh_context.i.flags & ATA_EHI_PRINTINFO; 542 int print_info = ap->eh_context.i.flags & ATA_EHI_PRINTINFO;
543 unsigned int n, quirks = 0; 543 unsigned int n, quirks = 0;
544 unsigned char model_num[41]; 544 unsigned char model_num[ATA_ID_PROD_LEN + 1];
545 545
546 ata_id_c_string(dev->id, model_num, ATA_ID_PROD_OFS, sizeof(model_num)); 546 ata_id_c_string(dev->id, model_num, ATA_ID_PROD, sizeof(model_num));
547 547
548 for (n = 0; sil_blacklist[n].product; n++) 548 for (n = 0; sil_blacklist[n].product; n++)
549 if (!strcmp(sil_blacklist[n].product, model_num)) { 549 if (!strcmp(sil_blacklist[n].product, model_num)) {