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:
9398a10
)
dlm: silence a harmless use after free warning
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 5 Feb 2014 13:21:53 +0000
(16:21 +0300)
committer
David Teigland
<teigland@redhat.com>
Wed, 12 Feb 2014 21:44:03 +0000
(15:44 -0600)
We pass the freed "r" pointer back to the caller. It's harmless but it
upsets the static checkers.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lock.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/dlm/lock.c
b/fs/dlm/lock.c
index e223a911a8346691d065e573f0ce0ab0ea9465fc..5ec4d60525d812aade835112b65490f2bab91d6c 100644
(file)
--- a/
fs/dlm/lock.c
+++ b/
fs/dlm/lock.c
@@
-687,6
+687,7
@@
static int find_rsb_dir(struct dlm_ls *ls, char *name, int len,
log_error(ls, "find_rsb new from_other %d dir %d our %d %s",
from_nodeid, dir_nodeid, our_nodeid, r->res_name);
dlm_free_rsb(r);
+ r = NULL;
error = -ENOTBLK;
goto out_unlock;
}