Date: Sun, 3 May 2015 23:36:25 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r282397 - head/sys/dev/wpi Message-ID: <201505032336.t43NaPLu095314@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505032336.t43NaPLu095314>