Damien Le Moal 3908c9839b dm zoned: fix overflow when converting zone ID to sectors
A zone ID is a 32 bits unsigned int which can overflow when doing the
bit shifts in dmz_start_sect().  With a 256 MB zone size drive, the
overflow happens for a zone ID >= 8192.

Fix this by casting the zone ID to a sector_t before doing the bit
shift.  While at it, similarly fix dmz_start_block().

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2017-07-05 16:08:47 -04:00
..
2017-06-12 08:30:13 -06:00
2017-06-12 08:30:13 -06:00
2016-11-01 09:43:26 -06:00
2017-06-12 08:30:13 -06:00
2017-06-09 09:27:32 -06:00
2017-05-08 17:15:12 -07:00
2017-06-09 09:27:32 -06:00
2017-06-09 09:27:32 -06:00
2017-06-09 09:27:32 -06:00
2017-06-12 08:30:13 -06:00
2017-06-09 09:27:32 -06:00
2017-06-19 11:03:51 -04:00
2017-05-01 14:09:21 -07:00
2017-06-09 09:27:32 -06:00