aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-02-05 08:21:53 -0500
committerDavid Teigland <teigland@redhat.com>2014-02-12 16:44:03 -0500
commite8243f32f2550de0eb97180f02a4e94c42d68b38 (patch)
tree00b5922cd07a9f6013a2241e0992acd92c4c2123 /fs/dlm
parent9398a10cd96422d529b9fb741637338c8cbcdd98 (diff)
dlm: silence a harmless use after free warning
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>
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/lock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c
index e223a911a834..5ec4d60525d8 100644
--- 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,
687 log_error(ls, "find_rsb new from_other %d dir %d our %d %s", 687 log_error(ls, "find_rsb new from_other %d dir %d our %d %s",
688 from_nodeid, dir_nodeid, our_nodeid, r->res_name); 688 from_nodeid, dir_nodeid, our_nodeid, r->res_name);
689 dlm_free_rsb(r); 689 dlm_free_rsb(r);
690 r = NULL;
690 error = -ENOTBLK; 691 error = -ENOTBLK;
691 goto out_unlock; 692 goto out_unlock;
692 } 693 }