diff options
author | Damien Le Moal <[email protected]> | 2018-05-31 17:42:40 +0900 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2018-06-05 21:18:41 -0400 |
commit | 3aadbe2523cab462da24c62d9cac5e018a6e69d5 (patch) | |
tree | d112391fa6d11eced27cbe280fed2721cb5a2b11 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | a0c1c185fbe2cd6052059604380b26441e2f935f (diff) |
scsi: sd_zbc: Fix sd_zbc_check_zone_size() error path
If a drive with variable zone sizes or an invalid last zone size is
detected, the local variable this_zone_blocks is set to 0 and early return
from the function triggered, but this does not result in an error return.
The local variable zone_blocks must be set to 0 for an error to be
returned.
[mkp: typo in commit description]
Fixes: ccce20fc7968 ("scsi: sd_zbc: Avoid that resetting a zone fails sporadically")
Signed-off-by: Damien Le Moal <[email protected]>
Cc: Bart Van Assche <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions