Files
linux/drivers
Damien Le Moal 763ccb4d19 scsi: sd_zbc: Fix variable type and bogus comment
commit f13cff6c25 upstream.

Fix the description of sd_zbc_check_zone_size() to correctly explain that
the returned value is a number of device blocks, not bytes.  Additionally,
the 32 bits "ret" variable used in this function may truncate the 64 bits
zone_blocks variable value upon return. To fix this, change "ret" type to
s64.

Fixes: ccce20fc79 ("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>
Cc: stable@kernel.org
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-25 11:25:06 +02:00
..
2018-07-22 14:28:43 +02:00
2018-07-03 11:24:56 +02:00
2018-06-16 09:45:14 +02:00
2018-07-17 11:39:30 +02:00
2018-06-11 22:49:19 +02:00
2018-01-17 09:45:27 +01:00