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/67232b5784ec
branches: trunk
changeset: 990382:67232b5784ec
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 8b793f197052 -r 67232b5784ec 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