diff options
| author | Navid Emamdoost <[email protected]> | 2019-12-15 01:51:14 +0000 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2019-12-18 19:08:29 +0000 |
| commit | 4282dc057d750c6a7dd92953564b15c26b54c22c (patch) | |
| tree | e130a6f8bcf110b4638c7c5ef603349243981db8 | |
| parent | brcmfmac: not set mbss in vif if firmware does not support MBSS (diff) | |
| download | kernel-4282dc057d750c6a7dd92953564b15c26b54c22c.tar.gz kernel-4282dc057d750c6a7dd92953564b15c26b54c22c.zip | |
brcmfmac: Fix memory leak in brcmf_usbdev_qinit
In the implementation of brcmf_usbdev_qinit() the allocated memory for
reqs is leaking if usb_alloc_urb() fails. Release reqs in the error
handling path.
Fixes: 71bb244ba2fd ("brcm80211: fmac: add USB support for bcm43235/6/8 chipsets")
Signed-off-by: Navid Emamdoost <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
| -rw-r--r-- | drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c index 7cdfde9b3dea..575ed19e9195 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c @@ -430,6 +430,7 @@ fail: usb_free_urb(req->urb); list_del(q->next); } + kfree(reqs); return NULL; } |
