summaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-11-19 10:23:50 -0500
committerTom Rini <trini@konsulko.com>2020-11-19 10:23:50 -0500
commitb80680633dc954d32f81f3afacd3d1f2f3d290b0 (patch)
treec551b408e9b714348c1f4f34b14a23d4641021b8 /fs/btrfs/inode.c
parente800d715e01daffa9a5078c974f4568d6ef9e7c3 (diff)
parentdd4866b43754b18f0c06672e341d93e16b8bf674 (diff)
Merge branch '2020-11-18-assorted-fixes'
- Assorted SquashFS fixes and cleanups - Fixes for various Coverity issues - Various fixups to other platforms / code
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index ff330280e02..019d532a1a4 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -251,7 +251,7 @@ int btrfs_lookup_path(struct btrfs_root *root, u64 ino, const char *filename,
const char *cur = filename;
u64 next_ino;
u8 next_type;
- u8 type;
+ u8 type = BTRFS_FT_UNKNOWN;
int len;
int ret = 0;
@@ -335,6 +335,10 @@ next:
cur += len;
}
+ /* We haven't found anything, but still get no error? */
+ if (type == BTRFS_FT_UNKNOWN && !ret)
+ ret = -EUCLEAN;
+
if (!ret) {
*root_ret = root;
*ino_ret = ino;