Re: [PATCH] DECnet: Use container_of() for embedded struct

2017-05-09 Thread David Miller
From: Kees Cook Date: Mon, 8 May 2017 15:31:44 -0700 > Instead of a direct cross-type cast, use conatiner_of() to locate > the embedded structure, even in the face of future struct layout > randomization. > > Signed-off-by: Kees Cook Applied.

[PATCH] DECnet: Use container_of() for embedded struct

2017-05-08 Thread Kees Cook
Instead of a direct cross-type cast, use conatiner_of() to locate the embedded structure, even in the face of future struct layout randomization. Signed-off-by: Kees Cook --- net/decnet/dn_neigh.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/net/decnet/dn_neig