Re: [net-next] qtnfmac: fix uninitialized return code in ret
From: Kalle Valo <hidden>
Date: 2017-06-28 17:50:38
Also in:
kernel-janitors, lkml, netdev
From: Kalle Valo <hidden>
Date: 2017-06-28 17:50:38
Also in:
kernel-janitors, lkml, netdev
Colin Ian King [off-list ref] wrote:
From: Colin Ian King <redacted>
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 <redacted>
Reviewed-by: Sergey Matyukevich <redacted>Patch applied to wireless-drivers-next.git, thanks. 3e3d8aa61107 qtnfmac: fix uninitialized return code in ret -- https://patchwork.kernel.org/patch/9801833/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches