1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-25 16:13:17 +00:00

urtwn: fix possible driver hang when beacon miss is detected.

This commit is contained in:
Andriy Voskoboinyk 2016-09-12 16:46:14 +00:00
parent 1a9ded46bd
commit bf5e39f7a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=305745

View File

@ -5628,8 +5628,11 @@ urtwn_raw_xmit(struct ieee80211_node *ni, struct mbuf *m,
callout_reset(&sc->sc_watchdog_ch, hz, urtwn_watchdog, sc);
end:
if (error != 0)
if (error != 0) {
if (m->m_flags & M_TXCB)
ieee80211_process_callback(ni, m, 1);
m_freem(m);
}
URTWN_UNLOCK(sc);