Skip to content
Commit 8fccfc82 authored by Mark Fasheh's avatar Mark Fasheh
Browse files

ocfs2: fix inode leak



We weren't cleaning up our inode reference on error in
ocfs2_reserve_local_alloc_bits(). Add a check for error return and iput() if
need be. Move the code to set the alloc context inode info to the end of the
function so we don't have any possibility of passing back a bad pointer.

Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent 5c3c6bb7
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