]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: hdspm: Fix zero-division
authorTakashi Iwai <tiwai@suse.de>
Mon, 29 Feb 2016 13:32:42 +0000 (14:32 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 9 Mar 2016 18:15:19 +0000 (13:15 -0500)
commit6177e82a6b6586a057e2f00940e2e220b993547e
tree373b53ac53b947f27084299ad3f4a275415fb3be
parentb9800dd1d9eeb4b5f81a485b270702a02b142b9b
ALSA: hdspm: Fix zero-division

[ Upstream commit c1099c3294c2344110085a38c50e478a5992b368 ]

HDSPM driver contains a code issuing zero-division potentially in
system sample rate ctl code.  This patch fixes it by not processing
a zero or invalid rate value as a divisor, as well as excluding the
invalid value to be passed via the given ctl element.

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
sound/pci/rme9652/hdspm.c