From: Al Viro Date: Thu, 23 Oct 2014 17:26:21 +0000 (-0400) Subject: fix inode leaks on d_splice_alias() failure exits X-Git-Tag: fixes-against-v3.18-rc2~5^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51486b900ee92856b977eacfc5bfbe6565028070;p=pandora-kernel.git fix inode leaks on d_splice_alias() failure exits d_splice_alias() callers expect it to either stash the inode reference into a new alias, or drop the inode reference. That makes it possible to just return d_splice_alias() result from ->lookup() instance, without any extra housekeeping required. Unfortunately, that should include the failure exits. If d_splice_alias() returns an error, it leaves the dentry it has been given negative and thus it *must* drop the inode reference. Easily fixed, but it goes way back and will need backporting. Cc: stable@vger.kernel.org Signed-off-by: Al Viro --- Reading git-diff-tree failed