Files
linux/drivers
Andre Noll d07bd3bcc4 md: Fix check for overlapping devices.
The checks in overlaps() expect all parameters either in block-based
or sector-based quantities. However, its single caller passes two
rdev->data_offset arguments as well as two rdev->size arguments, the
former being sector counts while the latter are measured in 1K blocks.

This could cause rdev_size_store() to accept an invalid size from user
space. Fix it by passing only sector-based quantities to overlaps().

Signed-off-by: Andre Noll <maan@systemlinux.org>
Signed-off-by: NeilBrown <neilb@suse.de>
2008-07-21 14:42:07 +10:00
..
…
2008-07-04 10:40:05 -07:00
…
…
…
2008-05-20 16:44:43 +02:00
2008-06-19 00:12:36 +02:00
2008-05-20 13:31:55 -07:00
…
2008-07-21 14:42:07 +10:00
2008-05-21 16:56:00 -07:00
2008-07-04 10:40:05 -07:00
…
2008-07-04 10:40:05 -07:00
…
…
2008-07-04 10:40:08 -07:00
…
2008-05-20 13:31:55 -07:00
2008-07-08 12:51:08 -07:00
…
…
…