diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2021-03-09 00:00:20 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-17 09:48:45 +0100 |
commit | a83aaf15077e1daae09e59f2e70ecd0467f6a5de (patch) | |
tree | 02c386d51c986fb8bfd4eee0409eed91660899c9 /mm/slab.h | |
parent | c79c37c77550fa35d58b5f7cca737937c8b319aa (diff) |
fs: orangefs: fix error return code of orangefs_revalidate_lookup()
[ Upstream commit 4c2b46c824a78fc8190d8eafaaea5a9078fe7479 ]
When op_alloc() returns NULL to new_op, no error return code of
orangefs_revalidate_lookup() is assigned.
To fix this bug, ret is assigned with -ENOMEM in this case.
Fixes: 8bb8aefd5afb ("OrangeFS: Change almost all instances of the string PVFS2 to OrangeFS.")
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'mm/slab.h')
0 files changed, 0 insertions, 0 deletions