diff options
author | Andriy Voskoboinyk <avos@FreeBSD.org> | 2017-02-17 23:20:22 +0000 |
---|---|---|
committer | Andriy Voskoboinyk <avos@FreeBSD.org> | 2017-02-17 23:20:22 +0000 |
commit | ce017db11c3b3cc59cb586aa546090fcbe9e40bc (patch) | |
tree | 6e97a7f3c88054b18458a5d69bb9c277b2874781 /sys/dev/ral | |
parent | e36b831f4b4efd5f86f0d28a37e31677d1677c04 (diff) | |
download | src-ce017db11c3b3cc59cb586aa546090fcbe9e40bc.tar.gz src-ce017db11c3b3cc59cb586aa546090fcbe9e40bc.zip |
iwi, ral, zyd: fix possible use-after-free.
MFC after: 5 days
Notes
Notes:
svn path=/head/; revision=313906
Diffstat (limited to 'sys/dev/ral')
-rw-r--r-- | sys/dev/ral/rt2661.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ral/rt2661.c b/sys/dev/ral/rt2661.c index d4872cd50446..3e4d7fdde42a 100644 --- a/sys/dev/ral/rt2661.c +++ b/sys/dev/ral/rt2661.c @@ -1616,9 +1616,9 @@ rt2661_start(struct rt2661_softc *sc) } ni = (struct ieee80211_node *) m->m_pkthdr.rcvif; if (rt2661_tx_data(sc, m, ni, ac) != 0) { - ieee80211_free_node(ni); if_inc_counter(ni->ni_vap->iv_ifp, IFCOUNTER_OERRORS, 1); + ieee80211_free_node(ni); break; } sc->sc_tx_timer = 5; |