mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
md/linear: avoid possible oops and array stop
commitef2f80ff73upstream. Since commitef286f6fa6it has been important that each personality clears ->private in the ->stop() function, or sets it to a attribute group to be removed. linear.c doesn't. This can sometimes lead to an oops, though it doesn't always. Suitable for 2.6.33-stable and 2.6.34. Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
cc620515a5
commit
784400c5bf
@@ -282,6 +282,7 @@ static int linear_stop (mddev_t *mddev)
|
||||
rcu_barrier();
|
||||
blk_sync_queue(mddev->queue); /* the unplug fn references 'conf'*/
|
||||
kfree(conf);
|
||||
mddev->private = NULL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user