Skip to content
Snippets Groups Projects
Commit 18a1cd92 authored by Joseph Qi's avatar Joseph Qi Committed by Greg Kroah-Hartman
Browse files

ocfs2: correct return value of ocfs2_local_free_info()

[ Upstream commit d32840ad ]

Now in ocfs2_local_free_info(), it returns 0 even if it actually fails.
Though it doesn't cause any real problem since the only caller
dquot_disable() ignores the return value, we'd better return correct as it
is.

Link: https://lkml.kernel.org/r/20230528132033.217664-1-joseph.qi@linux.alibaba.com


Signed-off-by: default avatarJoseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joseph Qi <jiangqi903@gmail.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Stable-dep-of: 5f3fd772 ("ocfs2: fix slab-use-after-free due to dangling pointer dqi_priv")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ad9ec26a
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment