projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8f70625
)
kernel/nfs: Fix a bug due to missing braces.
author
Sascha Wildner <saw@online.de>
Fri, 9 Dec 2011 11:38:39 +0000 (12:38 +0100)
committer
Sascha 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
patch
|
blob
|
blame
|
history
diff --git
a/sys/vfs/nfs/nfs_syscalls.c
b/sys/vfs/nfs/nfs_syscalls.c
index
9fb0973
..
bc87abd
100644
(file)
--- 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);