diff options
| author | 2007-11-08 19:20:09 +0000 | |
|---|---|---|
| committer | 2007-11-08 19:20:09 +0000 | |
| commit | c012330e56876fe3ea3a2551eb5457f9ecf570b1 (patch) | |
| tree | 87e76642e2ab45d0f247262a014c69e22690da28 /sys/nfs/nfs_serv.c | |
| parent | more low hanging fruit; Expand the nfsm_srvwcc_data() macro (diff) | |
| download | wireguard-openbsd-c012330e56876fe3ea3a2551eb5457f9ecf570b1.tar.xz wireguard-openbsd-c012330e56876fe3ea3a2551eb5457f9ecf570b1.zip | |
Fix unsafe queue macro use
ok thib@ 'emphatic' ok beck@
Diffstat (limited to 'sys/nfs/nfs_serv.c')
| -rw-r--r-- | sys/nfs/nfs_serv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c index 4dd3d472c79..028a8292f50 100644 --- a/sys/nfs/nfs_serv.c +++ b/sys/nfs/nfs_serv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_serv.c,v 1.45 2007/11/07 23:40:52 thib Exp $ */ +/* $OpenBSD: nfs_serv.c,v 1.46 2007/11/08 19:20:09 blambert Exp $ */ /* $NetBSD: nfs_serv.c,v 1.34 1997/05/12 23:37:12 fvdl Exp $ */ /* @@ -874,7 +874,7 @@ nfsrv_writegather(ndp, slp, procp, mrq) { struct iovec *ivp; struct mbuf *mp; - struct nfsrv_descript *wp, *nfsd, *owp, *swp; + struct nfsrv_descript *wp, *nfsd, *nnfsd, *owp, *swp; struct nfs_fattr *fp; int i = 0; struct iovec *iov; @@ -1161,8 +1161,8 @@ loop1: * Search for a reply to return. */ s = splsoftclock(); - for (nfsd = LIST_FIRST(&slp->ns_tq); nfsd != NULL; - nfsd = LIST_NEXT(nfsd, nd_tq)) { + for (nfsd = LIST_FIRST(&slp->ns_tq); nfsd != NULL; nfsd = nnfsd) { + nnfsd = LIST_NEXT(nfsd, nd_tq); if (nfsd->nd_mreq) { LIST_REMOVE(nfsd, nd_tq); *mrq = nfsd->nd_mreq; |
