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.
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