diff options
author | Ingo Molnar <mingo@kernel.org> | 2019-08-20 21:38:05 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-08-20 21:38:05 +0200 |
commit | 51c359c2fd0a1d485c24d27687dfa67fc71a7864 (patch) | |
tree | 75a222cb784f004e579e40a88c16343b377274e4 /fs/xfs/libxfs/xfs_dir2_node.c | |
parent | cfb104ca8a26affb28d81720a4ed49c30b2a3b01 (diff) | |
parent | d1abaeb3be7b5fa6d7a1fbbd2e14e3310005c4c1 (diff) |
Merge tag 'v5.3-rc5' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'fs/xfs/libxfs/xfs_dir2_node.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_dir2_node.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_dir2_node.c b/fs/xfs/libxfs/xfs_dir2_node.c index afcc6642690a..1fc44efc344d 100644 --- a/fs/xfs/libxfs/xfs_dir2_node.c +++ b/fs/xfs/libxfs/xfs_dir2_node.c @@ -741,7 +741,8 @@ xfs_dir2_leafn_lookup_for_entry( ents = dp->d_ops->leaf_ents_p(leaf); xfs_dir3_leaf_check(dp, bp); - ASSERT(leafhdr.count > 0); + if (leafhdr.count <= 0) + return -EFSCORRUPTED; /* * Look up the hash value in the leaf entries. |