diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2015-10-12 04:55:20 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2015-10-12 04:55:20 +0000 |
commit | d957a93abe82adf570931b97a918d9555a655a1e (patch) | |
tree | 0ad5a3585c48c4d2f6705ea7eb28cc7313a8c059 /sys/dev/wi | |
parent | d3a4ade3b8232efc2338e59219d1cf108f6ee930 (diff) | |
download | src-d957a93abe82adf570931b97a918d9555a655a1e.tar.gz src-d957a93abe82adf570931b97a918d9555a655a1e.zip |
net80211: move ieee80211_free_node() call on error from ic_raw_xmit() to ieee80211_raw_output().
This doesn't free the mbuf upon error; the driver ic_raw_xmit method is still
doing that.
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3774
Notes
Notes:
svn path=/head/; revision=289165
Diffstat (limited to 'sys/dev/wi')
-rw-r--r-- | sys/dev/wi/if_wi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index f8af23138340..832e6aa37c04 100644 --- a/sys/dev/wi/if_wi.c +++ b/sys/dev/wi/if_wi.c @@ -1077,6 +1077,7 @@ wi_raw_xmit(struct ieee80211_node *ni, struct mbuf *m0, goto out; } m0 = NULL; + ieee80211_free_node(ni); sc->sc_txnext = cur = (cur + 1) % sc->sc_ntxbuf; out: @@ -1084,7 +1085,6 @@ out: if (m0 != NULL) m_freem(m0); - ieee80211_free_node(ni); return rc; } |