Skip to content

Commit 27749f2

Browse files
xuejiufeitorvalds
authored andcommitted
ocfs2: add missing lockres put in dlm_mig_lockres_handler
dlm_mig_lockres_handler() is missing a dlm_lockres_put() on an error path. Signed-off-by: joyce <xuejiufei@huawei.com> Reviewed-by: shencanquan <shencanquan@huawei.com> Cc: Mark Fasheh <mfasheh@suse.com> Cc: Joel Becker <jlbec@evilplan.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 026b081 commit 27749f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/ocfs2/dlm/dlmrecovery.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,6 +1408,7 @@ int dlm_mig_lockres_handler(struct o2net_msg *msg, u32 len, void *data,
14081408
mres->lockname_len, mres->lockname);
14091409
ret = -EFAULT;
14101410
spin_unlock(&res->spinlock);
1411+
dlm_lockres_put(res);
14111412
goto leave;
14121413
}
14131414
res->state |= DLM_LOCK_RES_MIGRATING;

0 commit comments

Comments
 (0)