FreeBSD Bugzilla – Attachment 204398 Details for
Bug 237921
wpi: Memory leak in function wpi_free_tx_ring of sys/dev/wpi/if_wpi.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-wpi-fix-memory-leak-in-wpi_free_tx_ring.patch (text/plain), 864 bytes, created by
Young
on 2019-05-16 12:06:46 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Young
Created:
2019-05-16 12:06:46 UTC
Size:
864 bytes
patch
obsolete
>From 6d2855d80653233827b0c3a45e1474995fbf5645 Mon Sep 17 00:00:00 2001 >From: Young Xiao <92siuyang@gmail.com> >Date: Thu, 16 May 2019 20:05:31 +0800 >Subject: [PATCH] wpi: fix memory leak in wpi_free_tx_ring(). > >Signed-off-by: Young Xiao <92siuyang@gmail.com> >--- > sys/dev/wpi/if_wpi.c | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/sys/dev/wpi/if_wpi.c b/sys/dev/wpi/if_wpi.c >index b1198c9..4bf4fd0 100644 >--- a/sys/dev/wpi/if_wpi.c >+++ b/sys/dev/wpi/if_wpi.c >@@ -1307,6 +1307,11 @@ wpi_free_tx_ring(struct wpi_softc *sc, struct wpi_tx_ring *ring) > BUS_DMASYNC_POSTWRITE); > bus_dmamap_unload(ring->data_dmat, data->map); > m_freem(data->m); >+ data->m = NULL; >+ } >+ if (data->ni != NULL) { >+ ieee80211_free_node(data->ni); >+ data->ni = NULL; > } > if (data->map != NULL) > bus_dmamap_destroy(ring->data_dmat, data->map); >-- >2.7.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 237921
: 204398