projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd69192
)
md: unlock mddev_lock on an error path.
author
NeilBrown
<neilb@suse.de>
Thu, 25 Jun 2015 07:06:40 +0000
(17:06 +1000)
committer
NeilBrown
<neilb@suse.de>
Thu, 25 Jun 2015 07:14:09 +0000
(17:14 +1000)
This error path retuns while still holding the lock - bad.
Fixes:
6791875e2e53
("md: make reconfig_mutex optional for writes to md sysfs files.")
Cc: stable@vger.kernel.org (v4.0+)
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/md.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 939739f0f881fc8cc4497bb10a6c0098c36747a6..5fcce7371ee925dbcd107463b9566db760a3fa52 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-4014,8
+4014,10
@@
new_dev_store(struct mddev *mddev, const char *buf, size_t len)
else
rdev = md_import_device(dev, -1, -1);
- if (IS_ERR(rdev))
+ if (IS_ERR(rdev)) {
+ mddev_unlock(mddev);
return PTR_ERR(rdev);
+ }
err = bind_rdev_to_array(rdev, mddev);
out:
if (err)