Commit f39b3f45 authored by Eric Sandeen's avatar Eric Sandeen Committed by Theodore Ts'o

ext4: reset error code in ext4_find_entry in fallback

When ext4_find_entry() falls back to "searching the old fashioned
way" due to a corrupt dx dir, it needs to reset the error code
to NULL so that the nonstandard ERR_BAD_DX_DIR code isn't returned
to userspace. default avatarAnatoly Trosinenko <>
Reviewed-by: default avatarAndreas Dilger <>
Signed-off-by: default avatarEric Sandeen <>
Signed-off-by: default avatarTheodore Ts'o <>
parent 430657b6
......@@ -1398,6 +1398,7 @@ static struct buffer_head * ext4_find_entry (struct inode *dir,
goto cleanup_and_exit;
dxtrace(printk(KERN_DEBUG "ext4_find_entry: dx failed, "
"falling back\n"));
ret = NULL;
nblocks = dir->i_size >> EXT4_BLOCK_SIZE_BITS(sb);
if (!nblocks) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment