1
0
Fork 0

md/linear: avoid possible oops and array stop

Since commit ef286f6fa6
it 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>
Cc: stable@kernel.org
hifive-unleashed-5.1
NeilBrown 2010-05-17 11:27:00 +10:00
parent e221835046
commit ef2f80ff73
1 changed files with 1 additions and 0 deletions

View File

@ -281,6 +281,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;
}