]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hdspm: Fix zero-division
authorTakashi Iwai <tiwai@suse.de>
Mon, 29 Feb 2016 13:32:42 +0000 (14:32 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 29 Feb 2016 17:13:34 +0000 (18:13 +0100)
commit99f9e97494f62f52199ee6240b97c4ff2af83616
tree7880f491fa9efd1eef7d9ba8643479dd1ee41071
parent6d58699e30db3abea9ffd6344e251e9b4a128929
ALSA: hdspm: Fix zero-division

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>
sound/pci/rme9652/hdspm.c