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
..
2016-08-07 23:38:47 -04:00
2016-08-12 15:12:54 -04:00
2015-10-03 11:40:00 -04:00
2018-06-26 08:08:08 +08:00
2016-08-12 15:12:54 -04:00
2016-11-07 10:41:55 -05:00
2017-06-14 15:06:00 +02:00
2016-08-15 11:38:36 -04:00
2021-07-20 16:21:13 +02:00
2016-08-12 15:12:54 -04:00