diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-04-09 09:50:59 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-04-09 10:01:23 -0400 |
commit | 835f9c38bbb4498c3d43b7466964bdadbb1fd244 (patch) | |
tree | ade5aec66bc7ddb97048c4f141932de0f93369b9 /sound/oss/sequencer.c | |
parent | f5f29151588744ea2e283971cb0ad403ee04e3e2 (diff) | |
parent | a937536b868b8369b98967929045f1df54234323 (diff) |
Merge tag 'v3.9-rc3' into next/multiplatform
Linux 3.9-rc3
Conflicts:
arch/arm/Kconfig
arch/arm/mach-spear/spear3xx.c
arch/arm/plat-spear/Kconfig
This is a dependency for ux500/multiplatform
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'sound/oss/sequencer.c')
-rw-r--r-- | sound/oss/sequencer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/oss/sequencer.c b/sound/oss/sequencer.c index 30bcfe470f83..4ff60a6427d9 100644 --- a/sound/oss/sequencer.c +++ b/sound/oss/sequencer.c | |||
@@ -545,6 +545,9 @@ static void seq_chn_common_event(unsigned char *event_rec) | |||
545 | case MIDI_PGM_CHANGE: | 545 | case MIDI_PGM_CHANGE: |
546 | if (seq_mode == SEQ_2) | 546 | if (seq_mode == SEQ_2) |
547 | { | 547 | { |
548 | if (chn > 15) | ||
549 | break; | ||
550 | |||
548 | synth_devs[dev]->chn_info[chn].pgm_num = p1; | 551 | synth_devs[dev]->chn_info[chn].pgm_num = p1; |
549 | if ((int) dev >= num_synths) | 552 | if ((int) dev >= num_synths) |
550 | synth_devs[dev]->set_instr(dev, chn, p1); | 553 | synth_devs[dev]->set_instr(dev, chn, p1); |
@@ -596,6 +599,9 @@ static void seq_chn_common_event(unsigned char *event_rec) | |||
596 | case MIDI_PITCH_BEND: | 599 | case MIDI_PITCH_BEND: |
597 | if (seq_mode == SEQ_2) | 600 | if (seq_mode == SEQ_2) |
598 | { | 601 | { |
602 | if (chn > 15) | ||
603 | break; | ||
604 | |||
599 | synth_devs[dev]->chn_info[chn].bender_value = w14; | 605 | synth_devs[dev]->chn_info[chn].bender_value = w14; |
600 | 606 | ||
601 | if ((int) dev < num_synths) | 607 | if ((int) dev < num_synths) |