Re: [PATCH v2] wifi: rtw88: fix memory leak in rtw_usb_probe()

From: Kalle Valo
Date: Mon Mar 13 2023 - 09:45:47 EST


Dongliang Mu <dzm91@xxxxxxxxxxx> wrote:

> drivers/net/wireless/realtek/rtw88/usb.c:876 rtw_usb_probe()
> warn: 'hw' from ieee80211_alloc_hw() not released on lines: 811
>
> Fix this by modifying return to a goto statement.
>
> Signed-off-by: Dongliang Mu <dzm91@xxxxxxxxxxx>
> Reviewed-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>

Patch applied to wireless-next.git, thanks.

48181d285623 wifi: rtw88: fix memory leak in rtw_usb_probe()

--
https://patchwork.kernel.org/project/linux-wireless/patch/20230309021636.528601-1-dzm91@xxxxxxxxxxx/

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