DECnet: Use container_of() for embedded struct
authorKees Cook <keescook@chromium.org>
Mon, 8 May 2017 22:31:44 +0000 (15:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 May 2017 13:39:49 +0000 (09:39 -0400)
commitf92ceb01c2cad7092af89c32dde5b14d4fdf8a09
tree659e99ee562c163d4d26e2060969bcbd13a6311f
parent32f1bc0f3d262125169f9212aac306c638e34b54
DECnet: Use container_of() for embedded struct

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@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/decnet/dn_neigh.c