diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2021-03-09 11:00:20 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-26 13:36:14 +0300 |
commit | f6c91946c2326f8d5c4b4bcbe58c42ef4bd46cae (patch) | |
tree | a3c039694ea10d0af34f59851714e53aed2d9535 /drivers/mtd | |
parent | cc806af48ba4aa0e8641268cac95557f85a64c90 (diff) | |
download | linux-f6c91946c2326f8d5c4b4bcbe58c42ef4bd46cae.tar.xz |
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 'drivers/mtd')
0 files changed, 0 insertions, 0 deletions