ALSA: bebob: Uninitialized id returned by saffirepro_both_clk_src_get
authorChristian Vogel <[email protected]>
Sat, 25 Oct 2014 11:40:41 +0000 (13:40 +0200)
committerTakashi Iwai <[email protected]>
Mon, 27 Oct 2014 13:09:14 +0000 (14:09 +0100)
commitd1d0b6b668818571122d30d68a0b3f768bd83a52
tree9b7d31a99e386ee272992e9f0fd7b67c5dd64316
parentd5432503bfb49f3425bad0b850714ffd8b533cfc
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 <[email protected]>
Reviewed-by: Takashi Sakamoto <[email protected]>
Cc: <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
sound/firewire/bebob/bebob_focusrite.c
sound/firewire/bebob/bebob_stream.c