mirror of
https://github.com/proski/madwifi
synced 2025-02-16 15:24:18 +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;
|
u_int16_t rxseq;
|
||||||
|
|
||||||
if ((vap->iv_dev->flags & (IFF_RUNNING | IFF_UP)) !=
|
if ((vap->iv_dev->flags & (IFF_RUNNING | IFF_UP)) !=
|
||||||
(IFF_RUNNING | IFF_UP))
|
(IFF_RUNNING | IFF_UP)) {
|
||||||
goto out;
|
ieee80211_dev_kfree_skb(&skb);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
/* Initialize ni as in the previous API. */
|
/* Initialize ni as in the previous API. */
|
||||||
if (ni_or_null == NULL) {
|
if (ni_or_null == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user