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/67c495c5441e
branches: trunk
changeset: 952299:67c495c5441e
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 2b93be7212d2 -r 67c495c5441e 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
@@ -2752,9 +2752,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