Selaa lähdekoodia

net: 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, with most initializer fixes
extracted from grsecurity.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Kees Cook 8 vuotta sitten
vanhempi
commit
9d1c0ca5e1
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      net/decnet/dn_dev.c

+ 1 - 1
net/decnet/dn_dev.c

@@ -201,7 +201,7 @@ static struct dn_dev_sysctl_table {
 		.extra1 = &min_t3,
 		.extra1 = &min_t3,
 		.extra2 = &max_t3
 		.extra2 = &max_t3
 	},
 	},
-	{0}
+	{ }
 	},
 	},
 };
 };