Commit f93a1c9e authored by Kees Cook's avatar Kees Cook Committed by Takashi Iwai

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: default avatarKees Cook <keescook@chromium.org>
Reviewed-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent fe4cb86c
...@@ -33,13 +33,13 @@ static int snd_emux_unuse(void *private_data, struct snd_seq_port_subscribe *inf ...@@ -33,13 +33,13 @@ static int snd_emux_unuse(void *private_data, struct snd_seq_port_subscribe *inf
* MIDI emulation operators * MIDI emulation operators
*/ */
static struct snd_midi_op emux_ops = { static struct snd_midi_op emux_ops = {
snd_emux_note_on, .note_on = snd_emux_note_on,
snd_emux_note_off, .note_off = snd_emux_note_off,
snd_emux_key_press, .key_press = snd_emux_key_press,
snd_emux_terminate_note, .note_terminate = snd_emux_terminate_note,
snd_emux_control, .control = snd_emux_control,
snd_emux_nrpn, .nrpn = snd_emux_nrpn,
snd_emux_sysex, .sysex = snd_emux_sysex,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment