projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2b9bff
)
md-cluster: add missed lockres_free
author
Guoqing Jiang
<gqjiang@suse.com>
Fri, 10 Jul 2015 09:01:20 +0000
(17:01 +0800)
committer
NeilBrown
<neilb@suse.com>
Mon, 31 Aug 2015 17:42:23 +0000
(19:42 +0200)
We also need to free the lock resource before goto out.
Reviewed-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/md-cluster.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/md-cluster.c
b/drivers/md/md-cluster.c
index 057a9733f74894696ae9c244cbb744c0a4c91648..411b4306840ff04a8a16145afa2bf133a4aa1d2b 100644
(file)
--- a/
drivers/md/md-cluster.c
+++ b/
drivers/md/md-cluster.c
@@
-647,8
+647,10
@@
static int gather_all_resync_info(struct mddev *mddev, int total_slots)
lockres_free(bm_lockres);
continue;
}
- if (ret)
+ if (ret) {
+ lockres_free(bm_lockres);
goto out;
+ }
/* TODO: Read the disk bitmap sb and check if it needs recovery */
dlm_unlock_sync(bm_lockres);
lockres_free(bm_lockres);