kernel/nfs: Fix a bug due to missing braces.
authorSascha Wildner <saw@online.de>
Fri, 9 Dec 2011 11:38:39 +0000 (12:38 +0100)
committerSascha Wildner <saw@online.de>
Fri, 9 Dec 2011 11:38:39 +0000 (12:38 +0100)
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()).

sys/vfs/nfs/nfs_syscalls.c

index 9fb0973..bc87abd 100644 (file)
@@ -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);