Re: [PATCH net] net: dsa: don't assign an error value to tag_ops

From: patchwork-bot+netdevbpf
Date: Mon Mar 22 2021 - 20:31:36 EST


Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Mon, 22 Mar 2021 15:26:50 -0500 you wrote:
> Use a temporary variable to hold the return value from
> dsa_tag_driver_get() instead of assigning it to dst->tag_ops. Leaving
> an error value in dst->tag_ops can result in deferencing an invalid
> pointer when a deferred switch configuration happens later.
>
> Fixes: 357f203bb3b5 ("net: dsa: keep a copy of the tagging protocol in the DSA switch tree")
>
> [...]

Here is the summary with links:
- [net] net: dsa: don't assign an error value to tag_ops
https://git.kernel.org/netdev/net/c/e0c755a45f6f

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