Skip to content

Commit

Permalink
MFC r342185:
Browse files Browse the repository at this point in the history
iwi(4): do not leak node reference when IWI_FLAG_ASSOCIATED flag is set.
  • Loading branch information
avos authored and avos committed Dec 25, 2018
1 parent 4e14cef commit bd64bae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/dev/iwi/if_iwi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2833,13 +2833,13 @@ iwi_auth_and_assoc(struct iwi_softc *sc, struct ieee80211vap *vap)

IWI_LOCK_ASSERT(sc);

ni = ieee80211_ref_node(vap->iv_bss);

if (sc->flags & IWI_FLAG_ASSOCIATED) {
DPRINTF(("Already associated\n"));
return (-1);
}

ni = ieee80211_ref_node(vap->iv_bss);

IWI_STATE_BEGIN(sc, IWI_FW_ASSOCIATING);
error = 0;
mode = 0;
Expand Down

0 comments on commit bd64bae

Please sign in to comment.