From: Sascha Wildner Date: Fri, 9 Dec 2011 11:38:39 +0000 (+0100) Subject: kernel/nfs: Fix a bug due to missing braces. X-Git-Tag: v3.0.0~433 X-Git-Url: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/285584544760aa58c9e6f73e5d6b676676100fd5 kernel/nfs: Fix a bug due to missing braces. The lwkt_reltoken() was added in c6b43e93a6cf0a70bde32cd141057a0df9860e13 but it was forgotten to put braces around the if's body (now having lwkt_reltoken() and the return()). --- diff --git a/sys/vfs/nfs/nfs_syscalls.c b/sys/vfs/nfs/nfs_syscalls.c index 9fb0973..bc87abd 100644 --- a/sys/vfs/nfs/nfs_syscalls.c +++ b/sys/vfs/nfs/nfs_syscalls.c @@ -602,8 +602,10 @@ nfssvc_nfsd(struct nfsd_srvargs *nsd, caddr_t argp, struct thread *td) !copyout(nfsd->nfsd_verfstr, nsd->nsd_verfstr, nfsd->nfsd_verflen) && !copyout((caddr_t)nsd, argp, sizeof (*nsd))) + { lwkt_reltoken(&slp->ns_token); return (ENEEDAUTH); + } cacherep = RC_DROPIT; } else { cacherep = nfsrv_getcache(nd, slp, &mreq);