Nikanth Karthikesan 781248c1b5 dm stripe: avoid divide by zero with invalid stripe count
If a table containing zero as stripe count is passed into stripe_ctr
the code attempts to divide by zero.

This patch changes DM_TABLE_LOAD to return -EINVAL if the stripe count
is zero.

We now get the following error messages:
  device-mapper: table: 253:0: striped: Invalid stripe count
  device-mapper: ioctl: error adding target to table

Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Cc: stable@kernel.org
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
2010-02-16 18:42:47 +00:00
..
2010-02-10 12:07:28 -07:00
2009-12-15 08:53:34 -08:00
2010-01-29 21:03:09 +01:00
2010-02-11 13:59:42 -08:00
2010-02-08 22:44:18 -08:00
2010-01-20 01:23:27 -05:00
2010-02-02 18:11:21 -08:00
2009-12-15 08:53:25 -08:00
2010-01-13 10:01:35 +00:00