]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: synth: emux: soundfont.c: divide by zero in calc_gus_envelope_time()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 6 May 2019 12:51:19 +0000 (15:51 +0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 6 May 2019 13:08:08 +0000 (15:08 +0200)
commit68a426e3964545fcd976281f69379688f2f7c387
tree3b195fc5c6918e3f621973a8dce8a74aa9bf5066
parent0e776db62de197b4074252dd028a48b4cf54f256
ALSA: synth: emux: soundfont.c: divide by zero in calc_gus_envelope_time()

This function is called from load_guspatch() and the rate is specified
by the user.  If they accidentally selected zero then it would crash the
kernel.  I've just changed the zero to a one.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/synth/emux/soundfont.c