Re: [PATCH v2] wifi: rtlwifi: rtl8192du: Fix possible memory leak in rtl92du_init_sw_vars()
From: Ping-Ke Shih
Date: Wed Jul 29 2026 - 22:27:16 EST
Abdun Nihaal <nihaal@xxxxxxxxxxxxxx> wrote:
> The memory allocated inside rtl92du_init_shared_data() is not freed in
> any of the subsequent error paths in rtl92du_init_sw_vars().
> Fix that by adding a call to rtl92du_deinit_shared_data() in the error
> path.
>
> Fixes: b5dc8873b6ff ("wifi: rtlwifi: Add rtl8192du/sw.c")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Abdun Nihaal <nihaal@xxxxxxxxxxxxxx>
> Acked-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>
1 patch(es) applied to rtw-next branch of rtw.git, thanks.
6496ce90845d wifi: rtlwifi: rtl8192du: Fix possible memory leak in rtl92du_init_sw_vars()
---
https://github.com/pkshih/rtw.git