diff options
author | NeilBrown <neilb@suse.de> | 2010-05-16 21:27:00 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-05-17 00:38:18 -0400 |
commit | ef2f80ff7325b2c1888ff02ead28957b5840bf51 (patch) | |
tree | f7d4eb0a1816c8a608ba61a9368203d7b0ac4978 /drivers/md/linear.c | |
parent | e2218350465e7e0931676b4849b594c978437bce (diff) |
md/linear: avoid possible oops and array stop
Since commit ef286f6fa673cd7fb367e1b145069d8dbfcc6081
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
Diffstat (limited to 'drivers/md/linear.c')
-rw-r--r-- | drivers/md/linear.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/linear.c b/drivers/md/linear.c index bb2a23159b21..9db8ee0614a4 100644 --- a/drivers/md/linear.c +++ b/drivers/md/linear.c | |||
@@ -281,6 +281,7 @@ static int linear_stop (mddev_t *mddev) | |||
281 | rcu_barrier(); | 281 | rcu_barrier(); |
282 | blk_sync_queue(mddev->queue); /* the unplug fn references 'conf'*/ | 282 | blk_sync_queue(mddev->queue); /* the unplug fn references 'conf'*/ |
283 | kfree(conf); | 283 | kfree(conf); |
284 | mddev->private = NULL; | ||
284 | 285 | ||
285 | return 0; | 286 | return 0; |
286 | } | 287 | } |