From: J. Bruce Fields Date: Fri, 25 Mar 2011 02:51:14 +0000 (-0400) Subject: nfsd: fix auth_domain reference leak on nlm operations X-Git-Tag: v2.6.39-rc3~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=954032d2527f2fce7355ba70709b5e143d6b686f;p=pandora-kernel.git nfsd: fix auth_domain reference leak on nlm operations This was noticed by users who performed more than 2^32 lock operations and hence made this counter overflow (eventually leading to use-after-free's). Setting rq_client to NULL here means that it won't later get auth_domain_put() when it should be. Appears to have been introduced in 2.5.42 by "[PATCH] kNFSd: Move auth domain lookup into svcauth" which moved most of the rq_client handling to common svcauth code, but left behind this one line. Cc: Neil Brown Cc: stable@kernel.org Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed