aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/ocfs1_fs_compat.h
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2007-05-09 20:34:26 -0400
committerMark Fasheh <mark.fasheh@oracle.com>2007-05-25 14:00:46 -0400
commit8fccfc829a66b8b879c6672940523a402a786ce1 (patch)
treec36ea2c8b9de97102397a755bf10cb3997461071 /fs/ocfs2/ocfs1_fs_compat.h
parent5c3c6bb7709bf2bf4132750124879b3d89183e46 (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>
Diffstat (limited to 'fs/ocfs2/ocfs1_fs_compat.h')
0 files changed, 0 insertions, 0 deletions