Files
linux/drivers
NeilBrown fdb396bd32 md/raid10: Fix memory leak when raid10 reshape completes.
commit b39685526f upstream.

When a raid10 commences a resync/recovery/reshape it allocates
some buffer space.
When a resync/recovery completes the buffer space is freed.  But not
when the reshape completes.
This can result in a small memory leak.

There is a subtle side-effect of this bug.  When a RAID10 is reshaped
to a larger array (more devices), the reshape is immediately followed
by a "resync" of the new space.  This "resync" will use the buffer
space which was allocated for "reshape".  This can cause problems
including a "BUG" in the SCSI layer.  So this is suitable for -stable.

Fixes: 3ea7daa5d7
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-17 09:19:24 -07:00
..
2014-07-17 16:21:05 -07:00
2014-09-05 16:34:12 -07:00
2014-08-07 14:52:37 -07:00
2014-07-31 12:52:56 -07:00
2014-04-14 06:50:04 -07:00
2014-07-31 12:52:56 -07:00
2014-08-07 14:52:37 -07:00
2014-01-15 14:51:22 -08:00
2014-09-05 16:34:17 -07:00
2014-03-04 07:55:47 -08:00