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/a14cb3d03838
branches: trunk
changeset: 375684:a14cb3d03838
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 df9888858ebf -r a14cb3d03838 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 @@ iwn_tx_done(struct iwn_softc *sc, struct
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