Thread (2 messages) 2 messages, 2 authors, 2025-05-29

Re: [PATCH] net: ch9200: fix uninitialised access during mii_nway_restart

From: patchwork-bot+netdevbpf@kernel.org
Date: 2025-05-29 04:09:58
Also in: linux-usb, lkml, stable

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Mon, 26 May 2025 19:36:07 +0100 you wrote:
In mii_nway_restart() the code attempts to call
mii->mdio_read which is ch9200_mdio_read(). ch9200_mdio_read()
utilises a local buffer called "buff", which is initialised
with control_read(). However "buff" is conditionally
initialised inside control_read():

        if (err == size) {
                memcpy(data, buf, size);
        }

[...]
Here is the summary with links:
  - net: ch9200: fix uninitialised access during mii_nway_restart
    https://git.kernel.org/netdev/net/c/9ad0452c0277

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

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