Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/dev/pci Use ieee80211_tx_complete() to free tx nod...
details: https://anonhg.NetBSD.org/src-all/rev/d90880281de4
branches: trunk
changeset: 370483:d90880281de4
user: Martin Husemann <martin%NetBSD.org@localhost>
date: Thu Feb 11 18:30:16 2021 +0100
description:
Use ieee80211_tx_complete() to free tx node info and mbuf
diffstat:
sys/dev/pci/if_iwn.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r 537f997e6b89 -r d90880281de4 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c Thu Feb 11 18:22:40 2021 +0100
+++ b/sys/dev/pci/if_iwn.c Thu Feb 11 18:30:16 2021 +0100
@@ -2825,9 +2825,8 @@
bus_dmamap_sync(sc->sc_dmat, data->map, 0, data->map->dm_mapsize,
BUS_DMASYNC_POSTWRITE);
bus_dmamap_unload(sc->sc_dmat, data->map);
- m_freem(data->m);
+ ieee80211_tx_complete(data->ni, data->m, 0);
data->m = NULL;
- ieee80211_free_node(data->ni);
data->ni = NULL;
sc->sc_tx_timer = 0;
Home |
Main Index |
Thread Index |
Old Index