311-v4.16-0008-brcmfmac-Fix-asymmetric-IO-functions.patch 1021 B

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