diff options
author | NeilBrown <neilb@suse.de> | 2006-02-03 03:03:40 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-03 08:31:59 -0800 |
commit | 284ae7cab0f7335c9e0aa8992b28415ef1a54c7c (patch) | |
tree | bc74bef37ecdceed31a15b4aefd1defccecf4a40 /drivers/md/raid5.c | |
parent | ab11f89929b785daaa428801bd8b7e65241d7913 (diff) | |
download | kernel_samsung_tuna-284ae7cab0f7335c9e0aa8992b28415ef1a54c7c.zip kernel_samsung_tuna-284ae7cab0f7335c9e0aa8992b28415ef1a54c7c.tar.gz kernel_samsung_tuna-284ae7cab0f7335c9e0aa8992b28415ef1a54c7c.tar.bz2 |
[PATCH] md: Handle overflow of mdu_array_info_t->size better
mdu_array_info_t->size is 'int', which isn't big enough for the size (in KB of
each component in) some arrays.
So rather than a random overflow, set size to -1 when it cannot be set
correctly.
To update aspect on an array, userspace will sometimes:
get_array_info
change one field
set_array_info
in this case, we don't want the '-1' in 'size' to change to size, or look like
a size change at all. So test for that in update_array_info.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/raid5.c')
0 files changed, 0 insertions, 0 deletions