[PATCH] md: Fix a bug that recently crept into md/linear
authorNeilBrown <neilb@suse.de>
Sat, 5 Aug 2006 19:14:07 +0000 (12:14 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 6 Aug 2006 15:57:46 +0000 (08:57 -0700)
commitf9abd1ace43d6186268856dbec2ebf411218d6ca
tree63ab66465c56e8e9fcbbf765f135838171fdd77d
parentaf2bc7d222c2700ccda060184d7bced7d7cb9fc2
[PATCH] md: Fix a bug that recently crept into md/linear

A recent patch that allowed linear arrays to be reconfigured on-line
allowed in a bug which results in divide by zero - not all
mddev->array_size were converted to conf->array_size.

This patch finished the conversion and fixed the bug.

The offending patch was commit 7c7546ccf6463edbeee8d9aac6de7be1cd80d08a.

Thanks to Simon Kirby <sim@netnation.com> for the bug report.

Cc: Simon Kirby <sim@netnation.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/linear.c