From: Mark Fasheh Date: Thu, 10 May 2007 00:34:26 +0000 (-0700) Subject: ocfs2: fix inode leak X-Git-Tag: v2.6.22-rc3~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fccfc829a66b8b879c6672940523a402a786ce1;p=pandora-kernel.git 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 --- Reading git-diff-tree failed