Files
linux/drivers
NeilBrown 3763b3c77e md/raid5: don't record new size if resize_stripes fails.
commit 6e9eac2dce upstream.

If any memory allocation in resize_stripes fails we will return
-ENOMEM, but in some cases we update conf->pool_size anyway.

This means that if we try again, the allocations will be assumed
to be larger than they are, and badness results.

So only update pool_size if there is no error.

This bug was introduced in 2.6.17 and the patch is suitable for
-stable.

Fixes: ad01c9e375 ("[PATCH] md: Allow stripes to be expanded in preparation for expanding an array")
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-06-05 23:19:59 -07:00
..
2014-04-14 06:42:18 -07:00
2015-05-13 05:15:42 -07:00
2015-05-06 21:56:25 +02:00