Commit becf91fc authored by Neil Brown's avatar Neil Brown Committed by David S. Miller

[PATCH] md: Fix stupid oops in recent md.c module changes

parent bd4efa73
...@@ -1714,8 +1714,8 @@ static int do_md_run(mddev_t * mddev) ...@@ -1714,8 +1714,8 @@ static int do_md_run(mddev_t * mddev)
err = mddev->pers->run(mddev); err = mddev->pers->run(mddev);
if (err) { if (err) {
printk(KERN_ERR "md: pers->run() failed ...\n"); printk(KERN_ERR "md: pers->run() failed ...\n");
mddev->pers = NULL;
module_put(mddev->pers->owner); module_put(mddev->pers->owner);
mddev->pers = NULL;
return -EINVAL; return -EINVAL;
} }
atomic_set(&mddev->writes_pending,0); atomic_set(&mddev->writes_pending,0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment