mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
net80211: fix bpf tap leak on wlan(4) detach
Some checks are pending
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
Some checks are pending
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
PR: 292337
Fixes: 8774a990ee
This commit is contained in:
parent
3ae56f659a
commit
509a185dd9
1 changed files with 9 additions and 6 deletions
|
|
@ -110,12 +110,6 @@ ieee80211_radiotap_detach(struct ieee80211com *ic)
|
|||
{
|
||||
}
|
||||
|
||||
void
|
||||
ieee80211_radiotap_vdetach(struct ieee80211vap *vap)
|
||||
{
|
||||
/* NB: bpfdetach is called by ether_ifdetach and claims all taps */
|
||||
}
|
||||
|
||||
static void
|
||||
set_channel(void *p, const struct ieee80211_channel *c)
|
||||
{
|
||||
|
|
@ -472,3 +466,12 @@ ieee80211_radiotap_vattach(struct ieee80211vap *vap)
|
|||
if_ref(vap->iv_ifp);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ieee80211_radiotap_vdetach(struct ieee80211vap *vap)
|
||||
{
|
||||
if (vap->iv_rawbpf != NULL) {
|
||||
bpf_detach(vap->iv_rawbpf);
|
||||
if_rele(vap->iv_ifp);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue