1 From 4282dc057d750c6a7dd92953564b15c26b54c22c Mon Sep 17 00:00:00 2001
2 From: Navid Emamdoost <navid.emamdoost@gmail.com>
3 Date: Sat, 14 Dec 2019 19:51:14 -0600
4 Subject: [PATCH] brcmfmac: Fix memory leak in brcmf_usbdev_qinit
6 In the implementation of brcmf_usbdev_qinit() the allocated memory for
7 reqs is leaking if usb_alloc_urb() fails. Release reqs in the error
10 Fixes: 71bb244ba2fd ("brcm80211: fmac: add USB support for bcm43235/6/8 chipsets")
11 Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
12 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
14 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 1 +
15 1 file changed, 1 insertion(+)
17 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
18 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
19 @@ -430,6 +430,7 @@ fail:
20 usb_free_urb(req->urb);