[iwn?] Fix memory leak in wpi_reset_tx_ring().
PR: kern/197143 Differential Revision: Andriy Voskoboinyk <s3erios@gmail.com>
This commit is contained in:
parent
12e0ff3b76
commit
978d805f34
@ -1279,6 +1279,10 @@ wpi_reset_tx_ring(struct wpi_softc *sc, struct wpi_tx_ring *ring)
|
||||
m_freem(data->m);
|
||||
data->m = NULL;
|
||||
}
|
||||
if (data->ni != NULL) {
|
||||
ieee80211_free_node(data->ni);
|
||||
data->ni = NULL;
|
||||
}
|
||||
}
|
||||
/* Clear TX descriptors. */
|
||||
memset(ring->desc, 0, ring->desc_dma.size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user