ALSA: synth: use designated initializers
authorKees Cook <keescook@chromium.org>
Sat, 17 Dec 2016 00:59:44 +0000 (16:59 -0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Dec 2016 15:06:16 +0000 (16:06 +0100)
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>
sound/synth/emux/emux_seq.c

index a0209204ae4892a490877c30eaf056c45cd8043a..55579f6b8cb2ed36566cb0c24685d743489b1a4f 100644 (file)
@@ -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,
 };