mac80211: backport brcmfmac fixes from 4.16
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 311-v4.16-0008-brcmfmac-Fix-asymmetric-IO-functions.patch
1 From 3508a056a1f45d95c874fc9af8748bf4229432b6 Mon Sep 17 00:00:00 2001
2 From: Ian Molton <ian@mnementh.co.uk>
3 Date: Mon, 13 Nov 2017 21:35:45 +0100
4 Subject: [PATCH] brcmfmac: Fix asymmetric IO functions.
5
6 Unlikely to be a problem, but brcmf_sdiod_regrl() is
7 not symmetric with brcmf_sdiod_regrb() in initializing
8 the data value on stack. Fix that.
9
10 Signed-off-by: Ian Molton <ian@mnementh.co.uk>
11 [arend: reword the commit message a bit]
12 Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
13 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
14 ---
15 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c
19 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c
20 @@ -383,7 +383,7 @@ u8 brcmf_sdiod_regrb(struct brcmf_sdio_d
21
22 u32 brcmf_sdiod_regrl(struct brcmf_sdio_dev *sdiodev, u32 addr, int *ret)
23 {
24 - u32 data = 0;
25 + u32 data;
26 int retval;
27
28 brcmf_dbg(SDIO, "addr:0x%08x\n", addr);