Commit cffd3297 authored by Vasily Averin's avatar Vasily Averin Committed by Greg Kroah-Hartman
Browse files

ext4: avoid buffer leak in ext4_orphan_add() after prior errors

commit feaf264c upstream.

Fixes: d745a8c2 ("ext4: reduce contention on s_orphan_lock")
Fixes: 6e3617e5

 ("ext4: Handle non empty on-disk orphan link")
Cc: Dmitry Monakhov <>
Signed-off-by: default avatarVasily Averin <>
Signed-off-by: default avatarTheodore Ts'o <>
Cc: # 2.6.34
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent da497e7a
......@@ -2820,7 +2820,9 @@ int ext4_orphan_add(handle_t *handle, struct inode *inode)
} else
jbd_debug(4, "superblock will point to %lu\n", inode->i_ino);
jbd_debug(4, "orphan inode %lu will point to %d\n",
inode->i_ino, NEXT_ORPHAN(inode));
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