346-brcmfmac-uninitialized-ret-variable.patch 704 B

123456789101112131415161718192021
  1. From: Dan Carpenter <dan.carpenter@oracle.com>
  2. Date: Tue, 15 Mar 2016 10:06:10 +0300
  3. Subject: [PATCH] brcmfmac: uninitialized "ret" variable
  4. There is an error path where "ret" isn't initialized.
  5. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
  6. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  7. ---
  8. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c
  9. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c
  10. @@ -250,7 +250,7 @@ static int brcmf_sdiod_request_data(stru
  11. u32 addr, u8 regsz, void *data, bool write)
  12. {
  13. struct sdio_func *func;
  14. - int ret;
  15. + int ret = -EINVAL;
  16. brcmf_dbg(SDIO, "rw=%d, func=%d, addr=0x%05x, nbytes=%d\n",
  17. write, fn, addr, regsz);