diff options
author | Andre Noll <maan@systemlinux.org> | 2008-07-21 06:42:07 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-07-21 06:42:07 +0200 |
commit | d07bd3bcc456228b56a790897162a634691fed9b (patch) | |
tree | cabb0feee45a7b3383fff4202adc35793c8bdbb1 /drivers/md/raid1.c | |
parent | md: Tidy up rdev_size_store a bit: (diff) | |
download | linux-d07bd3bcc456228b56a790897162a634691fed9b.tar.xz linux-d07bd3bcc456228b56a790897162a634691fed9b.zip |
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>
Diffstat (limited to 'drivers/md/raid1.c')
0 files changed, 0 insertions, 0 deletions