kernel/sound/synth/emux/emux_nrpn.c
.. .. @@ -349,6 +349,9 @@ 349 349 snd_emux_xg_control(struct snd_emux_port *port, struct snd_midi_channel *chan, 350 350 int param) 351 351 { 352 + if (param >= ARRAY_SIZE(chan->control))353 + return -EINVAL;354 +352 355 return send_converted_effect(xg_effects, ARRAY_SIZE(xg_effects), 353 356 port, chan, param, 354 357 chan->control[param],