Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163267079
D4069.id9975.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1014 B
Referenced Files
None
Subscribers
None
D4069.id9975.diff
View Options
Index: head/sys/dev/iwn/if_iwn.c
===================================================================
--- head/sys/dev/iwn/if_iwn.c
+++ head/sys/dev/iwn/if_iwn.c
@@ -4852,6 +4852,7 @@
if_inc_counter(ni->ni_vap->iv_ifp,
IFCOUNTER_OERRORS, 1);
ieee80211_free_node(ni);
+ m_freem(m);
}
}
@@ -4872,16 +4873,13 @@
DPRINTF(sc, IWN_DEBUG_XMIT | IWN_DEBUG_TRACE, "->%s begin\n", __func__);
+ IWN_LOCK(sc);
if ((sc->sc_flags & IWN_FLAG_RUNNING) == 0) {
m_freem(m);
- return ENETDOWN;
+ IWN_UNLOCK(sc);
+ return (ENETDOWN);
}
- /* XXX? net80211 doesn't set this on xmit'ed raw frames? */
- m->m_pkthdr.rcvif = (void *) ni;
-
- IWN_LOCK(sc);
-
/* queue frame if we have to */
if (sc->sc_beacon_wait) {
if (iwn_xmit_queue_enqueue(sc, m) != 0) {
@@ -4909,12 +4907,14 @@
}
if (error == 0)
sc->sc_tx_timer = 5;
+ else
+ m_freem(m);
IWN_UNLOCK(sc);
DPRINTF(sc, IWN_DEBUG_TRACE | IWN_DEBUG_XMIT, "->%s: end\n",__func__);
- return error;
+ return (error);
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 2:32 PM (7 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35367296
Default Alt Text
D4069.id9975.diff (1014 B)
Attached To
Mode
D4069: iwn(4): fix mbuf leaks in error paths
Attached
Detach File
Event Timeline
Log In to Comment