diff options
author | Kees Cook <keescook@chromium.org> | 2016-12-17 02:01:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-17 17:56:57 +0100 |
commit | ebf12f1320c70c3eaeb5b7d108444fafd54d352c (patch) | |
tree | 88f025a5665f1bad906e86dd008cb3e93bd82656 /drivers/isdn/i4l/isdn_x25iface.c | |
parent | bna: use designated initializers (diff) | |
download | linux-ebf12f1320c70c3eaeb5b7d108444fafd54d352c.tar.xz linux-ebf12f1320c70c3eaeb5b7d108444fafd54d352c.zip |
isdn: 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>
Diffstat (limited to 'drivers/isdn/i4l/isdn_x25iface.c')
-rw-r--r-- | drivers/isdn/i4l/isdn_x25iface.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/isdn/i4l/isdn_x25iface.c b/drivers/isdn/i4l/isdn_x25iface.c index 0c5d8de41b23..ba60076e0b95 100644 --- a/drivers/isdn/i4l/isdn_x25iface.c +++ b/drivers/isdn/i4l/isdn_x25iface.c @@ -53,14 +53,14 @@ static int isdn_x25iface_disconn_ind(struct concap_proto *); static struct concap_proto_ops ix25_pops = { - &isdn_x25iface_proto_new, - &isdn_x25iface_proto_del, - &isdn_x25iface_proto_restart, - &isdn_x25iface_proto_close, - &isdn_x25iface_xmit, - &isdn_x25iface_receive, - &isdn_x25iface_connect_ind, - &isdn_x25iface_disconn_ind + .proto_new = &isdn_x25iface_proto_new, + .proto_del = &isdn_x25iface_proto_del, + .restart = &isdn_x25iface_proto_restart, + .close = &isdn_x25iface_proto_close, + .encap_and_xmit = &isdn_x25iface_xmit, + .data_ind = &isdn_x25iface_receive, + .connect_ind = &isdn_x25iface_connect_ind, + .disconn_ind = &isdn_x25iface_disconn_ind }; /* error message helper function */ |