diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-12-28 20:06:12 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-12-28 20:06:12 +0000 |
commit | 2480e42d2fb95b4fc6ba433cb0b95f6815b55cd7 (patch) | |
tree | 82f907226af844e317f31457dba136b7b5e3744c /sys/net/if_ppp.c | |
parent | bd4d905356c01182d54e264499fa8d97372906f3 (diff) |
check if ifqueue has anything queued before doing the dance of
splnet/IF_DEQUEUE/splx; ok various people
Diffstat (limited to 'sys/net/if_ppp.c')
-rw-r--r-- | sys/net/if_ppp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 87c873148a2..f1ca74c7309 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ppp.c,v 1.46 2006/03/25 22:41:47 djm Exp $ */ +/* $OpenBSD: if_ppp.c,v 1.47 2006/12/28 20:06:11 deraadt Exp $ */ /* $NetBSD: if_ppp.c,v 1.39 1997/05/17 21:11:59 christos Exp $ */ /* @@ -1127,7 +1127,7 @@ pppintr() splx(s2); (*sc->sc_start)(sc); } - for (;;) { + while (sc->sc_rawq.ifq_head) { s2 = splnet(); IF_DEQUEUE(&sc->sc_rawq, m); splx(s2); |