HomeFreeBSD

LinuxKPI: 802.11: plug a ni leak in lkpi_sta_assoc_to_run()

Description

LinuxKPI: 802.11: plug a ni leak in lkpi_sta_assoc_to_run()

In lkpi_sta_assoc_to_run() we are going through some code segments
twice (auth->assoc, assoc->authorized). The 2nd time we shall not
re-gain a reference on the net80211 node as otherwise it'll leak.
Likewise we do not have to re-set lsta and sta.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 71df58aefcf8be21b32e2a7b83da6d0facb8b326)

Details

Provenance
bzAuthored on Jun 5 2022, 9:10 PM
Parents
rGb84aea440bf8: LinuxKPI: 802.11 plug mbuf leak in error cases
Branches
Unknown
Tags
Unknown