ALSA: hda - using uninitialized data
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 26 Nov 2014 22:34:43 +0000 (01:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Jan 2015 14:59:01 +0000 (06:59 -0800)
commita26f3d7af44539e6fc1d7c62e03fab95efccdbf9
treea41033dbca3b0bc00b5ad5a34758d65d194b44b6
parent5c27da8b2773851c9920b458366c5294c9de2aa6
ALSA: hda - using uninitialized data

commit 69eba10e606a80665f8573221fec589430d9d1cb upstream.

In olden times the snd_hda_param_read() function always set "*start_id"
but in 2007 we introduced a new return and it causes uninitialized data
bugs in a couple of the callers: print_codec_info() and
hdmi_parse_codec().

Fixes: e8a7f136f5ed ('[ALSA] hda-intel - Improve HD-audio codec probing robustness')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/hda_codec.c