Thread (2 messages) flat view 2 messages, 2 authors, 2022-08-24

Re: [PATCH] micrel: ksz8851: fixes struct pointer issue

From: patchwork-bot+netdevbpf@kernel.org
Date: 2022-08-24 12:10:31
Also in: lkml

Hello:

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

On Mon, 22 Aug 2022 16:39:32 -0500 you wrote:
Issue found during code review. This bug has no impact as long as the
ks8851_net structure is the first element of the ks8851_net_spi structure.
As long as the offset to the ks8851_net struct is zero, the container_of()
macro is subtracting 0 and therefore no damage done. But if the
ks8851_net_spi struct is ever modified such that the ks8851_net struct
within it is no longer the first element of the struct, then the bug would
manifest itself and cause problems.

[...]
Here is the summary with links:
  - micrel: ksz8851: fixes struct pointer issue
    https://git.kernel.org/netdev/net-next/c/fef5de753ff0

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