diff options
author | Colin Ian King <[email protected]> | 2017-06-21 14:25:30 +0100 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2017-06-28 20:50:12 +0300 |
commit | 3e3d8aa611076efc945687df30a3abf181989d1d (patch) | |
tree | 7739945b83e61743afe1e1612741b380f50d4293 /net/lapb/lapb_subr.c | |
parent | b90a16854d60f147cc6388dbe3e9765101c5b5a6 (diff) |
qtnfmac: fix uninitialized return code in ret
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 <[email protected]>
Reviewed-by: Sergey Matyukevich <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions