af_unix: Use designated initializers
authorKees Cook <keescook@chromium.org>
Wed, 5 Apr 2017 05:12:09 +0000 (22:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Apr 2017 19:43:04 +0000 (12:43 -0700)
commit82fe0d2b44e00820c4ecb40a30e6014df6a1dd1f
tree1c95b38318e3a3e2e7e1ca3f1bdd07963db9b171
parent540c86f3ed3dd173c1dfcd95214e4401ef565ba7
af_unix: Use designated initializers

Prepare to mark sensitive kernel structures for randomization by making
sure they're using designated initializers. These were identified during
allyesconfig builds of x86, arm, and arm64, and the initializer fixes
were extracted from grsecurity. In this case, NULL initialize with { }
instead of undesignated NULLs.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c