mirror of
https://github.com/proski/madwifi
synced 2024-11-21 22:11:32 +03:00
Don't unref node in ieee80211_input() if it wasn't referenced
Thanks to: Daniel Wu <danwu@ucdavis.edu> "Ilya A. Volynets-Evenbakh" <ilya@total-knowledge.com> git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4080 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
a548cc50ad
commit
319a241c30
@ -213,8 +213,10 @@ ieee80211_input(struct ieee80211vap *vap, struct ieee80211_node *ni_or_null,
|
||||
u_int16_t rxseq;
|
||||
|
||||
if ((vap->iv_dev->flags & (IFF_RUNNING | IFF_UP)) !=
|
||||
(IFF_RUNNING | IFF_UP))
|
||||
goto out;
|
||||
(IFF_RUNNING | IFF_UP)) {
|
||||
ieee80211_dev_kfree_skb(&skb);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Initialize ni as in the previous API. */
|
||||
if (ni_or_null == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user