mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
22 lines
704 B
Diff
22 lines
704 B
Diff
|
From: Dan Carpenter <dan.carpenter@oracle.com>
|
||
|
Date: Tue, 15 Mar 2016 10:06:10 +0300
|
||
|
Subject: [PATCH] brcmfmac: uninitialized "ret" variable
|
||
|
|
||
|
There is an error path where "ret" isn't initialized.
|
||
|
|
||
|
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
|
||
|
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
|
||
|
---
|
||
|
|
||
|
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c
|
||
|
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c
|
||
|
@@ -250,7 +250,7 @@ static int brcmf_sdiod_request_data(stru
|
||
|
u32 addr, u8 regsz, void *data, bool write)
|
||
|
{
|
||
|
struct sdio_func *func;
|
||
|
- int ret;
|
||
|
+ int ret = -EINVAL;
|
||
|
|
||
|
brcmf_dbg(SDIO, "rw=%d, func=%d, addr=0x%05x, nbytes=%d\n",
|
||
|
write, fn, addr, regsz);
|