Thread (2 messages) flat view 2 messages, 2 authors, 2021-08-04

Re: [PATCH] brcmfmac: uninitialized variable in brcmf_fw_get_firmwares()

From: Linus Walleij <hidden>
Date: 2021-08-04 09:40:15
Also in: kernel-janitors

On Wed, Aug 4, 2021 at 10:24 AM Dan Carpenter [off-list ref] wrote:
The "ret" variable is used without being initialized when "alt_path" is
false.

Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware binaries")
Signed-off-by: Dan Carpenter <redacted>
Thanks Dan!

But yesterday I sent another patch which incidentally fixes
this too:
https://lore.kernel.org/linux-wireless/20210803232746.3389570-1-linus.walleij@linaro.org/T/#u (local)

As you can see in the last hunk of that patch ret is now
unconditionally assigned on both forks of the
if/else-clause.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help