[ALSA] emu10k1 driver oops loading large soundfont 2.6.3

From: Michael
Date: Mon Feb 23 2004 - 00:24:12 EST


please CC: me on replies

In struct snd_emu10k1_memblk in include/sound/emu10k1.h first_page and last_page are defined as short.


Loading a soundfont that goes beyond 32767 pages causes an oops because {first|last}_page go negative in snd_emu10k1_sample_new (sound/pci/emu10k1/emu10k1_patch.c) as sfxload loads the font.

Changing {first|last}_page to int allows the soundfont to load and it appears to work fine.

--
Michael.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/