mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 06:34:12 +08:00
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>
This commit is contained in:
parent
9398a10cd9
commit
e8243f32f2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user