commit | f92ceb01c2cad7092af89c32dde5b14d4fdf8a09 | [log] [tgz] |
---|---|---|
author | Kees Cook <keescook@chromium.org> | Mon May 08 15:31:44 2017 -0700 |
committer | David S. Miller <davem@davemloft.net> | Tue May 09 09:39:49 2017 -0400 |
tree | 659e99ee562c163d4d26e2060969bcbd13a6311f | |
parent | 32f1bc0f3d262125169f9212aac306c638e34b54 [diff] |
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>