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-18 12:40:59 -06:00
2017-05-04 19:15:35 -07:00
2017-06-01 14:49:47 -04:00
2017-05-05 19:33:07 -07:00
2017-06-06 09:37:44 -07:00
2017-04-27 11:54:49 +01:00
2017-06-11 11:29:15 -07:00
2017-06-12 08:30:13 -06:00
2017-04-17 00:42:22 +02:00
2017-04-20 09:54:24 +02:00
2017-05-09 10:01:15 -07:00
2017-05-04 19:15:35 -07:00
2017-06-11 11:25:51 -07:00
2017-05-18 23:54:47 -07:00
2017-06-04 10:23:25 +02:00
2017-05-05 11:36:44 -07:00
2017-05-11 11:12:26 -07:00