Jia-Ju Bai f0b6ae56a6 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>
2021-11-26 11:48:38 +01:00
..
2020-11-10 10:23:59 +01:00
2020-01-29 10:24:34 +01:00
2019-08-06 18:29:38 +02:00
2021-07-20 16:21:00 +02:00
2021-07-20 16:21:08 +02:00
2021-11-26 11:48:36 +01:00
2019-03-13 14:04:52 -07:00
2018-12-21 14:11:31 +01:00
2020-04-02 17:20:27 +02:00
2018-02-17 13:21:15 +01:00
2017-06-14 15:06:01 +02:00