]> git.baikalelectronics.ru Git - kernel.git/commit
fs: orangefs: fix error return code of orangefs_revalidate_lookup()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Tue, 9 Mar 2021 08:00:20 +0000 (00:00 -0800)
committerMike Marshall <hubcap@omnibond.com>
Mon, 11 Oct 2021 18:25:34 +0000 (14:25 -0400)
commitb2bca3eaaf5960fff1308933422ec17a2feefeb4
treec3c8cc267f837bd51bdfd1db804ad0f43fc0a565
parentda3a316b446082ee7b7bbf76a7ea11a59b97e053
fs: orangefs: fix error return code of orangefs_revalidate_lookup()

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: 17147be6484c ("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>
fs/orangefs/dcache.c