UPSTREAM: ANDROID: fuse-bpf: set error_in to ENOENT in negative lookup

Bug: 250617797
Test: fuse-test passes, app installs
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: I44544f8989d0ddf00a98eaddce5751df6598130f
This commit is contained in:
Paul Lawrence 2022-10-03 09:56:21 -07:00 • committed by Alexander Martinz
commit 9769804365
No known key found for this signature in database
GPG key ID: CF15BDD9A321A9B2

View file

@ -1176,8 +1176,10 @@ int fuse_lookup_backing(struct fuse_bpf_args *fa, struct inode *dir,
.mnt = mntget(dir_fuse_entry->backing_path.mnt),
};
if (d_is_negative(backing_entry))
if (d_is_negative(backing_entry)) {
fa->error_in = -ENOENT;
return 0;
}
err = vfs_getattr(&fuse_entry->backing_path, &stat,
STATX_BASIC_STATS, 0);