From patchwork Fri Mar 25 03:12:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J. Bruce Fields" X-Patchwork-Id: 660921 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2P3Cpem020430 for ; Fri, 25 Mar 2011 03:12:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934416Ab1CYDMm (ORCPT ); Thu, 24 Mar 2011 23:12:42 -0400 Received: from fieldses.org ([174.143.236.118]:57586 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751212Ab1CYDMm (ORCPT ); Thu, 24 Mar 2011 23:12:42 -0400 Received: from bfields by fieldses.org with local (Exim 4.72) (envelope-from ) id 1Q2xS4-0001gq-VG; Thu, 24 Mar 2011 23:12:41 -0400 Date: Thu, 24 Mar 2011 23:12:40 -0400 To: linux-nfs@vger.kernel.org Cc: Neil Brown Subject: [PATCH] nfsd: fix auth_domain reference leak on nlm operations Message-ID: <20110325031240.GA6479@fieldses.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) From: "J. Bruce Fields" Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 25 Mar 2011 03:12:52 +0000 (UTC) diff --git a/fs/nfsd/lockd.c b/fs/nfsd/lockd.c index 0c6d816..7c831a2 100644 --- a/fs/nfsd/lockd.c +++ b/fs/nfsd/lockd.c @@ -38,7 +38,6 @@ nlm_fopen(struct svc_rqst *rqstp, struct nfs_fh *f, struct file **filp) exp_readlock(); nfserr = nfsd_open(rqstp, &fh, S_IFREG, NFSD_MAY_LOCK, filp); fh_put(&fh); - rqstp->rq_client = NULL; exp_readunlock(); /* We return nlm error codes as nlm doesn't know * about nfsd, but nfsd does know about nlm..