Thread (3 messages) 3 messages, 3 authors, 2021-10-29

Re: [PATCH net v2] net: bridge: fix uninitialized variables when BRIDGE_CFM is disabled

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-10-29 12:50:11
Also in: bridge, lkml

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller [off-list ref]:

On Thu, 28 Oct 2021 17:58:35 +0200 you wrote:
Function br_get_link_af_size_filtered() calls br_cfm_{,peer}_mep_count()
that return a count. When BRIDGE_CFM is not enabled these functions
simply return -EOPNOTSUPP but do not modify count parameter and
calling function then works with uninitialized variables.
Modify these inline functions to return zero in count parameter.

Fixes: b6d0425b816e ("bridge: cfm: Netlink Notifications.")
Cc: Henrik Bjoernlund <redacted>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>

[...]
Here is the summary with links:
  - [net,v2] net: bridge: fix uninitialized variables when BRIDGE_CFM is disabled
    https://git.kernel.org/netdev/net/c/829e050eea69

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