Patch "wifi: rtw88: fix memory leak in rtw_usb_probe()" has been added to the 6.3-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    wifi: rtw88: fix memory leak in rtw_usb_probe()

to the 6.3-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     wifi-rtw88-fix-memory-leak-in-rtw_usb_probe.patch
and it can be found in the queue-6.3 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 3bc47779db4ebaeb943e2d97c7ef5b14110704ee
Author: Dongliang Mu <dzm91@xxxxxxxxxxx>
Date:   Thu Mar 9 10:16:36 2023 +0800

    wifi: rtw88: fix memory leak in rtw_usb_probe()
    
    [ Upstream commit 48181d285623198c33bb9698992502687b258efa ]
    
    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>
    Signed-off-by: Kalle Valo <kvalo@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230309021636.528601-1-dzm91@xxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/wireless/realtek/rtw88/usb.c b/drivers/net/wireless/realtek/rtw88/usb.c
index a10d6fef4ffaf..8e2c99f9c3662 100644
--- a/drivers/net/wireless/realtek/rtw88/usb.c
+++ b/drivers/net/wireless/realtek/rtw88/usb.c
@@ -832,7 +832,7 @@ int rtw_usb_probe(struct usb_interface *intf, const struct usb_device_id *id)
 
 	ret = rtw_usb_alloc_rx_bufs(rtwusb);
 	if (ret)
-		return ret;
+		goto err_release_hw;
 
 	ret = rtw_core_init(rtwdev);
 	if (ret)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux