Files
android_kernel_xiaomi_sm8450/drivers/ata
Damien Le Moal b320a0a9f2 ata: Fix ZBC_OUT command block check
The block (LBA) specified must not exceed the last addressable LBA,
which is dev->nr_sectors - 1. So fix the correct check is
"if (block >= dev->n_sectors)" and not "if (block > dev->n_sectords)".

Additionally, the asc/ascq to return for an LBA that is not a zone start
LBA should be ILLEGAL REQUEST, regardless if the bad LBA is out of
range.

Reported-by: David Butterfield <david.butterfield@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Cc: stable@vger.kernel.org
Signed-off-by: Tejun Heo <tj@kernel.org>
2018-07-02 08:59:11 -07:00
..
2018-07-02 08:53:50 -07:00
2018-01-08 06:15:41 -08:00
2018-06-12 16:19:22 -07:00
2018-03-13 13:29:10 -07:00
2015-09-10 17:02:04 -04:00