Thread (6 messages) 6 messages, 3 authors, 2020-11-07

Re: [PATCH v2] brcmfmac: Fix memory leak for unpaired brcmf_{alloc/free}

From: Arend Van Spriel <arend.vanspriel@broadcom.com>
Date: 2020-11-02 17:40:08
Also in: linux-wireless

On November 2, 2020 6:15:32 PM Kalle Valo [off-list ref] wrote:
Seung-Woo Kim [off-list ref] writes:
quoted
There are missig brcmf_free() for brcmf_alloc(). Fix memory leak
by adding missed brcmf_free().

Reported-by: Jaehoon Chung <jh80.chung@samsung.com>
Fixes: commit 450914c39f88 ("brcmfmac: split brcmf_attach() and 
brcmf_detach() functions")
This should be:

Fixes: 450914c39f88 ("brcmfmac: split brcmf_attach() and brcmf_detach() 
functions")

But I can fix that, no need to resend because of this.
Hi Kalle,

But this is not the commit that needs fixing as I mentioned before. Instead 
it should be a1f5aac1765af ("brcmfmac: don't realloc wiphy during PCIe 
reset") which introduced the actual memory leak.

Regards,
Arend
--
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

Attachments

  • smime.p7s [application/pkcs7-signature] 4176 bytes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help