svn commit: r282397 - head/sys/dev/wpi
Adrian Chadd
adrian at FreeBSD.org
Sun May 3 23:36:26 UTC 2015
Author: adrian
Date: Sun May 3 23:36:25 2015
New Revision: 282397
URL: https://svnweb.freebsd.org/changeset/base/282397
Log:
[iwn?] Fix memory leak in wpi_reset_tx_ring().
PR: kern/197143
Differential Revision: Andriy Voskoboinyk <s3erios at gmail.com>
Modified:
head/sys/dev/wpi/if_wpi.c
Modified: head/sys/dev/wpi/if_wpi.c
==============================================================================
--- head/sys/dev/wpi/if_wpi.c Sun May 3 23:35:44 2015 (r282396)
+++ head/sys/dev/wpi/if_wpi.c Sun May 3 23:36:25 2015 (r282397)
@@ -1279,6 +1279,10 @@ wpi_reset_tx_ring(struct wpi_softc *sc,
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);
More information about the svn-src-head
mailing list