diff options
| author | Max Laier <mlaier@FreeBSD.org> | 2004-09-01 19:56:47 +0000 |
|---|---|---|
| committer | Max Laier <mlaier@FreeBSD.org> | 2004-09-01 19:56:47 +0000 |
| commit | 7b21048cea0926d00fd8ff5fd119ad13ad749c8d (patch) | |
| tree | 63b62658bd73aaf16ca9934024909e5e9f5dfca3 /sys/net | |
| parent | 7d901dbf29ec5b72479cf6246b4405c8e2090c3a (diff) | |
Notes
Diffstat (limited to 'sys/net')
| -rw-r--r-- | sys/net/if.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index ef48f1e54f65d..8097cc1ff5104 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -986,6 +986,7 @@ if_qflush(struct ifaltq *ifq) { struct mbuf *m, *n; + IFQ_LOCK(ifq); #ifdef ALTQ if (ALTQ_IS_ENABLED(ifq)) ALTQ_PURGE(ifq); @@ -998,6 +999,7 @@ if_qflush(struct ifaltq *ifq) ifq->ifq_head = 0; ifq->ifq_tail = 0; ifq->ifq_len = 0; + IFQ_UNLOCK(ifq); } /* |
