iwi(4): do not leak node reference when IWI_FLAG_ASSOCIATED flag is set.
MFC after: 6 days
This commit is contained in:
parent
076b94438c
commit
12df38ad62
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user