Skip to content
Commit f92ceb01 authored by Kees Cook's avatar Kees Cook Committed by David S. Miller
Browse files

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: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 32f1bc0f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment