lkml.org 
[lkml]   [2022]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] micrel: ksz8851: fixes struct pointer issue
From
Date
Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

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


\
 
 \ /
  Last update: 2022-08-24 14:11    [W:0.221 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site