Fix an assertion when if_down()ing a ALTQ managed interface. The lock should
have been in place all the time the mtx_assert in the ALTQ code just discovered the shortcoming. PR: i386/71195 Tested by: Bettan (PR originator), myself MFC after: 5 days
This commit is contained in:
parent
7d901dbf29
commit
7b21048cea
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134614
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user