From: Jeff Layton Date: Sat, 13 Dec 2014 14:11:39 +0000 (-0500) Subject: nfsd: fix fi_delegees leak when fi_had_conflict returns true X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~309^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94ae1db226a5bcbb48372d81161f084c9e283fd8;p=pandora-kernel.git nfsd: fix fi_delegees leak when fi_had_conflict returns true Currently, nfs4_set_delegation takes a reference to an existing delegation and then checks to see if there is a conflict. If there is one, then it doesn't release that reference. Change the code to take the reference after the check and only if there is no conflict. Signed-off-by: Jeff Layton Cc: stable@vger.kernel.org Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed