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/42a7c4c07d8a
branches:  trunk
changeset: 376998:42a7c4c07d8a
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 31abacd25c4e -r 42a7c4c07d8a 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