net: use designated initializers
authorKees Cook <keescook@chromium.org>
Sat, 17 Dec 2016 00:58:58 +0000 (16:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Dec 2016 16:56:57 +0000 (11:56 -0500)
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, with most initializer fixes
extracted from grsecurity.

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

index b2c26b081134a0c5b3697bfbad0148a029a5b95e..41f803e35da3bafd93a5d0853ee2e034995ad9c5 100644 (file)
@@ -201,7 +201,7 @@ static struct dn_dev_sysctl_table {
                .extra1 = &min_t3,
                .extra2 = &max_t3
        },
-       {0}
+       { }
        },
 };