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:
proski 2009-07-30 17:17:02 +00:00
parent a548cc50ad
commit 319a241c30
1 changed files with 4 additions and 2 deletions

View File

@ -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) {