The return value ret is unitialized and garbage is being returned
for the three different error conditions when setting up the PCIe
BARs. Fix this by initializing ret to -ENOMEM to indicate that
the BARs failed to be setup correctly.
Detected by CoverityScan, CID#1437563 ("Unitialized scalar variable")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
|
||
|---|---|---|
| .. | ||
| pearl | ||
| Kconfig | ||
| Makefile | ||
| bus.h | ||
| cfg80211.c | ||
| cfg80211.h | ||
| commands.c | ||
| commands.h | ||
| core.c | ||
| core.h | ||
| debug.c | ||
| debug.h | ||
| event.c | ||
| event.h | ||
| qlink.h | ||
| qlink_util.c | ||
| qlink_util.h | ||
| qtn_hw_ids.h | ||
| shm_ipc.c | ||
| shm_ipc.h | ||
| shm_ipc_defs.h | ||
| trans.c | ||
| trans.h | ||
| util.c | ||
| util.h | ||