diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2007-11-08 19:20:10 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2007-11-08 19:20:10 +0000 |
commit | 6c72bf44e549c61117f494a5b41aa10735b22f28 (patch) | |
tree | ffbc47710fad653b55480b56309a9df9ddb390df /sys/nfs/nfs_serv.c | |
parent | 327fe86513615afffce6cf3db078ba93e35e584e (diff) |
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; |