diff options
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 2f2884b92434..f368387829ca 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -1787,7 +1787,8 @@ int ata_dev_configure(struct ata_device *dev) | |||
1787 | } | 1787 | } |
1788 | 1788 | ||
1789 | if (ata_device_blacklisted(dev) & ATA_HORKAGE_MAX_SEC_128) | 1789 | if (ata_device_blacklisted(dev) & ATA_HORKAGE_MAX_SEC_128) |
1790 | dev->max_sectors = min(ATA_MAX_SECTORS_128, dev->max_sectors); | 1790 | dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_128, |
1791 | dev->max_sectors); | ||
1791 | 1792 | ||
1792 | /* limit ATAPI DMA to R/W commands only */ | 1793 | /* limit ATAPI DMA to R/W commands only */ |
1793 | if (ata_device_blacklisted(dev) & ATA_HORKAGE_DMA_RW_ONLY) | 1794 | if (ata_device_blacklisted(dev) & ATA_HORKAGE_DMA_RW_ONLY) |