Re: [PATCH] wireless: mwifiex: fix double free

2020-10-05 Thread Brian Norris
On Sun, Oct 4, 2020 at 6:19 AM wrote: > > From: Tom Rix > > clang static analysis reports this problem: > > sdio.c:2403:3: warning: Attempt to free released memory > kfree(card->mpa_rx.buf); > ^~~ That's some interesting static analysis for a compiler. > When

[PATCH] wireless: mwifiex: fix double free

2020-10-04 Thread trix
From: Tom Rix clang static analysis reports this problem: sdio.c:2403:3: warning: Attempt to free released memory kfree(card->mpa_rx.buf); ^~~ When mwifiex_init_sdio() fails in its first call to mwifiex_alloc_sdio_mpa_buffer, it falls back to calling it again