]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: bebob: Uninitialized id returned by saffirepro_both_clk_src_get
authorChristian Vogel <vogelchr@vogel.cx>
Sat, 25 Oct 2014 11:40:41 +0000 (13:40 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 27 Oct 2014 13:09:14 +0000 (14:09 +0100)
commit02856fb927f7d6b78b72427cd4bb40245a0b8837
tree9b7d31a99e386ee272992e9f0fd7b67c5dd64316
parentf839e2c32f1bd9503c73f5323919ea69a37306de
ALSA: bebob: Uninitialized id returned by saffirepro_both_clk_src_get

snd_bebob_stream_check_internal_clock() may get an id from
saffirepro_both_clk_src_get (via clk_src->get()) that was uninitialized.

a) make logic in saffirepro_both_clk_src_get explicit
b) test if id used in snd_bebob_stream_check_internal_clock matches array size

[fixed missing signed prefix to *_maps[] by tiwai]

Signed-off-by: Christian Vogel <vogelchr@vogel.cx>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/bebob/bebob_focusrite.c
sound/firewire/bebob/bebob_stream.c