[lvc-project] [PATCH net v2] broadcom: b44: prevent uninitialized value usage
Andrew Lunn
andrew at lunn.ch
Fri Dec 5 18:13:37 MSK 2025
On Fri, Dec 05, 2025 at 10:17:58AM +0300, Alexey Simakov wrote:
> On execution path with raised B44_FLAG_EXTERNAL_PHY, b44_readphy()
> leaves bmcr value uninitialized and it is used later in the code.
>
> Add check of this flag at the beginning of the b44_nway_reset() and
> exit early of the function with restarting autonegotiation if an
> external PHY is used.
>
> Found by Linux Verification Center (linuxtesting.org) with Svace.
>
> Fixes: 753f492093da ("[B44]: port to native ssb support")
> Signed-off-by: Alexey Simakov <bigalex934 at gmail.com>
Reviewed-by: Andrew Lunn <andrew at lunn.ch>
Andrew
More information about the lvc-project
mailing list