From: Sunil Mushran Date: Tue, 21 Apr 2009 04:34:18 +0000 (-0700) Subject: ocfs2: Add missing iput() during error handling in ocfs2_dentry_attach_lock() X-Git-Tag: v2.6.30-rc5~57^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5a0a630922a2f6a774b6dac19f70cb5abd86bb0;p=pandora-kernel.git ocfs2: Add missing iput() during error handling in ocfs2_dentry_attach_lock() In ocfs2_dentry_attach_lock(), if unable to get the dentry lock, we need to call iput(inode) because a failure here means no d_instantiate(), which means the normally matching iput() will not be called during dput(dentry). This patch fixes the oops that accompanies the following message: (3996,1):dlm_empty_lockres:2708 ERROR: lockres W00000000000000000a1046b06a4382 still has local locks! kernel BUG in dlm_empty_lockres at /rpmbuild/smushran/BUILD/ocfs2-1.4.2/fs/ocfs2/dlm/dlmmaster.c:2709! Signed-off-by: Sunil Mushran Signed-off-by: Joel Becker --- Reading git-diff-tree failed