* Patch "brcmfmac: fix uninitialized warning in brcmf_usb_probe_phase2()" has been added to the 4.9-stable tree
@ 2017-06-27 12:49 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-06-27 12:49 UTC (permalink / raw)
To: arend.vanspriel, gregkh, kvalo, sfr; +Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
brcmfmac: fix uninitialized warning in brcmf_usb_probe_phase2()
to the 4.9-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:
brcmfmac-fix-uninitialized-warning-in-brcmf_usb_probe_phase2.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From 35abcd4f9f303ac4f10f99b3f7e993e5f2e6fa37 Mon Sep 17 00:00:00 2001
From: Arend Van Spriel <arend.vanspriel@broadcom.com>
Date: Fri, 16 Jun 2017 09:36:35 +0100
Subject: brcmfmac: fix uninitialized warning in brcmf_usb_probe_phase2()
From: Arend Van Spriel <arend.vanspriel@broadcom.com>
commit 35abcd4f9f303ac4f10f99b3f7e993e5f2e6fa37 upstream.
This fixes the following warning:
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c: In function
'brcmf_usb_probe_phase2':
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c:1198:2:
warning: 'devinfo' may be used uninitialized in this function
[-Wmaybe-uninitialized]
mutex_unlock(&devinfo->dev_init_lock);
Fixes: 6d0507a777fb ("brcmfmac: add parameter to pass error code in firmware callback")
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
@@ -1163,14 +1163,13 @@ static void brcmf_usb_probe_phase2(struc
void *nvram, u32 nvlen)
{
struct brcmf_bus *bus = dev_get_drvdata(dev);
- struct brcmf_usbdev_info *devinfo;
+ struct brcmf_usbdev_info *devinfo = bus->bus_priv.usb->devinfo;
if (ret)
goto error;
brcmf_dbg(USB, "Start fw downloading\n");
- devinfo = bus->bus_priv.usb->devinfo;
ret = check_file(fw->data);
if (ret < 0) {
brcmf_err("invalid firmware\n");
Patches currently in stable-queue which might be from arend.vanspriel@broadcom.com are
queue-4.9/brcmfmac-add-parameter-to-pass-error-code-in-firmware-callback.patch
queue-4.9/brcmfmac-use-firmware-callback-upon-failure-to-load.patch
queue-4.9/brcmfmac-fix-uninitialized-warning-in-brcmf_usb_probe_phase2.patch
queue-4.9/brcmfmac-unbind-all-devices-upon-failure-in-firmware-callback.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-27 12:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-27 12:49 Patch "brcmfmac: fix uninitialized warning in brcmf_usb_probe_phase2()" has been added to the 4.9-stable tree gregkh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.