commit | 8fccfc829a66b8b879c6672940523a402a786ce1 | [log] [tgz] |
---|---|---|
author | Mark Fasheh <mark.fasheh@oracle.com> | Wed May 09 17:34:26 2007 -0700 |
committer | Mark Fasheh <mark.fasheh@oracle.com> | Fri May 25 11:00:46 2007 -0700 |
tree | c36ea2c8b9de97102397a755bf10cb3997461071 | |
parent | 5c3c6bb7709bf2bf4132750124879b3d89183e46 [diff] |
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: Mark Fasheh <mark.fasheh@oracle.com>