diff options
author | Damien Le Moal <[email protected]> | 2018-06-26 20:56:54 +0900 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2018-07-02 08:59:11 -0700 |
commit | b320a0a9f23c98f21631eb27bcbbca91c79b1c6e (patch) | |
tree | 825d8e21f42ebfb0710d38ac2485a4849627d504 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | ba44579141f9e2c0229e6e7eeb00b5fa68f0f74a (diff) |
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 <[email protected]>
Signed-off-by: Damien Le Moal <[email protected]>
Cc: [email protected]
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions