Files
android_kernel_xiaomi_sm8450/drivers/scsi
Damien Le Moal 3aadbe2523 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: ccce20fc79 ("scsi: sd_zbc: Avoid that resetting a zone fails sporadically")
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Cc: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-06-05 21:18:41 -04:00
..
2018-04-03 17:38:39 -07:00
2018-03-15 00:35:43 -04:00
2018-04-03 17:38:39 -07:00
2018-04-03 17:38:39 -07:00
2017-12-04 20:32:53 -05:00
2017-12-04 20:32:53 -05:00
2017-08-25 17:21:11 -04:00
2017-08-24 22:29:06 -04:00
2018-04-03 17:38:39 -07:00
2017-08-25 17:21:10 -04:00
2018-03-12 21:16:58 -04:00
2018-03-19 22:54:47 -04:00
2018-05-16 07:24:30 +02:00
2018-05-16 07:24:30 +02:00
2018-01-08 22:27:32 -05:00
2017-04-26 18:32:29 -04:00