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)
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>

No differences found