]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ocfs2: correct return value of ocfs2_local_free_info()
authorJoseph Qi <joseph.qi@linux.alibaba.com>
Sun, 28 May 2023 13:20:32 +0000 (21:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2025 16:15:57 +0000 (17:15 +0100)
commit86f8046aa649b84794dd288d790d5e016fff0589
tree0307731de2718afa4556064c193a766803feefc8
parent0552befaccd816a1c3607de84aab6d893902bb51
ocfs2: correct return value of ocfs2_local_free_info()

[ Upstream commit d32840ad4a111c6abd651fbf6b5996e6123913da ]

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: Joseph 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: Andrew Morton <akpm@linux-foundation.org>
Stable-dep-of: 5f3fd772d152 ("ocfs2: fix slab-use-after-free due to dangling pointer dqi_priv")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ocfs2/quota_local.c