fs: ocfs2: check status values
authorArtem Chernyshev <artem.chernyshev@red-soft.ru>
Mon, 9 Oct 2023 14:11:11 +0000 (17:11 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 18 Oct 2023 21:43:22 +0000 (14:43 -0700)
commit1b13a7030504da9d379270675166342e7039817c
tree33008320ac30f64b90299b66d738475013ccf623
parent6e79b375adb38219099d7e3ccc973a7808108a3e
fs: ocfs2: check status values

Test return values before overwriting.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Link: https://lkml.kernel.org/r/20231009141111.149858-1-artem.chernyshev@red-soft.ru
Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru>
Reviewed-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: 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>
fs/ocfs2/namei.c
fs/ocfs2/quota_local.c