mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
sc->ndis_tq variable is only initialized when a driver module is for wireless
NICs. PR: kern/118439 Submitted by: Weongyo Jeong
This commit is contained in:
parent
0ce0ead5aa
commit
2aec24b515
1 changed files with 4 additions and 2 deletions
|
|
@ -958,7 +958,8 @@ ndis_detach(dev)
|
|||
} else
|
||||
NDIS_UNLOCK(sc);
|
||||
|
||||
taskqueue_drain(sc->ndis_tq, &sc->ndis_scantask);
|
||||
if (sc->ndis_80211)
|
||||
taskqueue_drain(sc->ndis_tq, &sc->ndis_scantask);
|
||||
|
||||
if (sc->ndis_tickitem != NULL)
|
||||
IoFreeWorkItem(sc->ndis_tickitem);
|
||||
|
|
@ -1017,7 +1018,8 @@ ndis_detach(dev)
|
|||
if (sc->ndis_iftype == PCIBus)
|
||||
bus_dma_tag_destroy(sc->ndis_parent_tag);
|
||||
|
||||
taskqueue_free(sc->ndis_tq);
|
||||
if (sc->ndis_80211)
|
||||
taskqueue_free(sc->ndis_tq);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue