summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorTom Yan <tom.ty89@gmail.com>2016-07-15 05:09:02 +0800
committerTejun Heo <tj@kernel.org>2016-07-18 18:25:00 -0400
commit35303d5c36415754680f953aa6128b8b907d0543 (patch)
treee29885191e8119a5a6944d1693903389b0fb224c /drivers/ata
parent2950cefac0a7d8d4de1b321874a1f31df4bc19a8 (diff)
downloadlinux-stable-35303d5c36415754680f953aa6128b8b907d0543.tar.gz
linux-stable-35303d5c36415754680f953aa6128b8b907d0543.tar.bz2
linux-stable-35303d5c36415754680f953aa6128b8b907d0543.zip
ata: make lba_{28,48}_ok() use ATA_MAX_SECTORS{,_LBA48}
Since we set ATA_MAX_SECTORS_LBA48 to 65535 to avoid the corner case in some drives that commands with "count" set to 0000h (which reprsents 65536) does not work as expected, lba_48_ok(), which is used for number-of-blocks checking when libata pack commands, should use the same limit as well. In fact, there is no reason for the two functions not to use the macros anyway. Signed-off-by: Tom Yan <tom.ty89@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata')
0 files changed, 0 insertions, 0 deletions