diff options
Diffstat (limited to 'drivers/ata/pata_hpt37x.c')
-rw-r--r-- | drivers/ata/pata_hpt37x.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ata/pata_hpt37x.c b/drivers/ata/pata_hpt37x.c index 3ad0e51cb2ab..ff767755e98b 100644 --- a/drivers/ata/pata_hpt37x.c +++ b/drivers/ata/pata_hpt37x.c | |||
@@ -349,13 +349,12 @@ static u32 hpt37x_find_mode(struct ata_port *ap, int speed) | |||
349 | 349 | ||
350 | static int hpt_dma_blacklisted(const struct ata_device *dev, char *modestr, const char *list[]) | 350 | static int hpt_dma_blacklisted(const struct ata_device *dev, char *modestr, const char *list[]) |
351 | { | 351 | { |
352 | unsigned char model_num[40]; | 352 | unsigned char model_num[ATA_ID_PROD_LEN]; |
353 | char *s; | 353 | char *s; |
354 | unsigned int len; | 354 | unsigned int len; |
355 | int i = 0; | 355 | int i = 0; |
356 | 356 | ||
357 | ata_id_string(dev->id, model_num, ATA_ID_PROD_OFS, | 357 | ata_id_string(dev->id, model_num, ATA_ID_PROD, sizeof(model_num)); |
358 | sizeof(model_num)); | ||
359 | s = &model_num[0]; | 358 | s = &model_num[0]; |
360 | len = strnlen(s, sizeof(model_num)); | 359 | len = strnlen(s, sizeof(model_num)); |
361 | 360 | ||