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

From: David Miller
Date: Tue May 09 2017 - 09:40:12 EST


From: Kees Cook <keescook@xxxxxxxxxxxx>
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 <keescook@xxxxxxxxxxxx>

Applied.