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)
commitc1099c3294c2344110085a38c50e478a5992b368
tree7880f491fa9efd1eef7d9ba8643479dd1ee41071
parent537e48136295c5860a92138c5ea3959b9542868b
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