提交 47941950 编写于 作者: K Kees Cook 提交者: David S. Miller

isdn/gigaset: 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: NKees Cook <keescook@chromium.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 cd333e37
...@@ -2565,22 +2565,22 @@ static int gigaset_post_reset(struct usb_interface *intf) ...@@ -2565,22 +2565,22 @@ static int gigaset_post_reset(struct usb_interface *intf)
static const struct gigaset_ops gigops = { static const struct gigaset_ops gigops = {
gigaset_write_cmd, .write_cmd = gigaset_write_cmd,
gigaset_write_room, .write_room = gigaset_write_room,
gigaset_chars_in_buffer, .chars_in_buffer = gigaset_chars_in_buffer,
gigaset_brkchars, .brkchars = gigaset_brkchars,
gigaset_init_bchannel, .init_bchannel = gigaset_init_bchannel,
gigaset_close_bchannel, .close_bchannel = gigaset_close_bchannel,
gigaset_initbcshw, .initbcshw = gigaset_initbcshw,
gigaset_freebcshw, .freebcshw = gigaset_freebcshw,
gigaset_reinitbcshw, .reinitbcshw = gigaset_reinitbcshw,
gigaset_initcshw, .initcshw = gigaset_initcshw,
gigaset_freecshw, .freecshw = gigaset_freecshw,
gigaset_set_modem_ctrl, .set_modem_ctrl = gigaset_set_modem_ctrl,
gigaset_baud_rate, .baud_rate = gigaset_baud_rate,
gigaset_set_line_ctrl, .set_line_ctrl = gigaset_set_line_ctrl,
gigaset_isoc_send_skb, .send_skb = gigaset_isoc_send_skb,
gigaset_isoc_input, .handle_input = gigaset_isoc_input,
}; };
/* bas_gigaset_init /* bas_gigaset_init
......
...@@ -445,22 +445,22 @@ static int gigaset_set_line_ctrl(struct cardstate *cs, unsigned cflag) ...@@ -445,22 +445,22 @@ static int gigaset_set_line_ctrl(struct cardstate *cs, unsigned cflag)
} }
static const struct gigaset_ops ops = { static const struct gigaset_ops ops = {
gigaset_write_cmd, .write_cmd = gigaset_write_cmd,
gigaset_write_room, .write_room = gigaset_write_room,
gigaset_chars_in_buffer, .chars_in_buffer = gigaset_chars_in_buffer,
gigaset_brkchars, .brkchars = gigaset_brkchars,
gigaset_init_bchannel, .init_bchannel = gigaset_init_bchannel,
gigaset_close_bchannel, .close_bchannel = gigaset_close_bchannel,
gigaset_initbcshw, .initbcshw = gigaset_initbcshw,
gigaset_freebcshw, .freebcshw = gigaset_freebcshw,
gigaset_reinitbcshw, .reinitbcshw = gigaset_reinitbcshw,
gigaset_initcshw, .initcshw = gigaset_initcshw,
gigaset_freecshw, .freecshw = gigaset_freecshw,
gigaset_set_modem_ctrl, .set_modem_ctrl = gigaset_set_modem_ctrl,
gigaset_baud_rate, .baud_rate = gigaset_baud_rate,
gigaset_set_line_ctrl, .set_line_ctrl = gigaset_set_line_ctrl,
gigaset_m10x_send_skb, /* asyncdata.c */ .send_skb = gigaset_m10x_send_skb, /* asyncdata.c */
gigaset_m10x_input, /* asyncdata.c */ .handle_input = gigaset_m10x_input, /* asyncdata.c */
}; };
......
...@@ -862,22 +862,22 @@ static int gigaset_pre_reset(struct usb_interface *intf) ...@@ -862,22 +862,22 @@ static int gigaset_pre_reset(struct usb_interface *intf)
} }
static const struct gigaset_ops ops = { static const struct gigaset_ops ops = {
gigaset_write_cmd, .write_cmd = gigaset_write_cmd,
gigaset_write_room, .write_room = gigaset_write_room,
gigaset_chars_in_buffer, .chars_in_buffer = gigaset_chars_in_buffer,
gigaset_brkchars, .brkchars = gigaset_brkchars,
gigaset_init_bchannel, .init_bchannel = gigaset_init_bchannel,
gigaset_close_bchannel, .close_bchannel = gigaset_close_bchannel,
gigaset_initbcshw, .initbcshw = gigaset_initbcshw,
gigaset_freebcshw, .freebcshw = gigaset_freebcshw,
gigaset_reinitbcshw, .reinitbcshw = gigaset_reinitbcshw,
gigaset_initcshw, .initcshw = gigaset_initcshw,
gigaset_freecshw, .freecshw = gigaset_freecshw,
gigaset_set_modem_ctrl, .set_modem_ctrl = gigaset_set_modem_ctrl,
gigaset_baud_rate, .baud_rate = gigaset_baud_rate,
gigaset_set_line_ctrl, .set_line_ctrl = gigaset_set_line_ctrl,
gigaset_m10x_send_skb, .send_skb = gigaset_m10x_send_skb,
gigaset_m10x_input, .handle_input = gigaset_m10x_input,
}; };
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册