diff options
author | Kees Cook <keescook@chromium.org> | 2016-12-16 16:59:44 -0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-12-28 16:06:16 +0100 |
commit | f93a1c9e5e6a8ce05391708157af5bfd71fe6c21 (patch) | |
tree | 57e3d07b5ba72b6e38b00aa28f680e1a7bf5cca5 /sound/synth | |
parent | fe4cb86cdea781e969f37b9aa9db95577ff485f2 (diff) | |
download | op-kernel-dev-f93a1c9e5e6a8ce05391708157af5bfd71fe6c21.zip op-kernel-dev-f93a1c9e5e6a8ce05391708157af5bfd71fe6c21.tar.gz |
ALSA: synth: 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>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/synth')
-rw-r--r-- | sound/synth/emux/emux_seq.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/synth/emux/emux_seq.c b/sound/synth/emux/emux_seq.c index a020920..55579f6 100644 --- a/sound/synth/emux/emux_seq.c +++ b/sound/synth/emux/emux_seq.c @@ -33,13 +33,13 @@ static int snd_emux_unuse(void *private_data, struct snd_seq_port_subscribe *inf * MIDI emulation operators */ static struct snd_midi_op emux_ops = { - snd_emux_note_on, - snd_emux_note_off, - snd_emux_key_press, - snd_emux_terminate_note, - snd_emux_control, - snd_emux_nrpn, - snd_emux_sysex, + .note_on = snd_emux_note_on, + .note_off = snd_emux_note_off, + .key_press = snd_emux_key_press, + .note_terminate = snd_emux_terminate_note, + .control = snd_emux_control, + .nrpn = snd_emux_nrpn, + .sysex = snd_emux_sysex, }; |