diff options
author | Colin Ian King <colin.king@canonical.com> | 2015-06-29 17:10:22 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-06-29 19:08:31 +0200 |
commit | 0755e74b8f04d17cea09fa342a788025b2b50e2e (patch) | |
tree | edb8d032ea6c474cbb78860bb3937f7b57244df2 /.mailmap | |
parent | 1947a114bff140b35bbad1c84a5af216f8416281 (diff) | |
download | linux-0755e74b8f04d17cea09fa342a788025b2b50e2e.tar.bz2 |
ALSA: Fix uninintialized error return
Static analysis with cppcheck found the following error:
[sound/core/init.c:118]: (error) Uninitialized variable: err
..this was introduced by commit 2471b6c80a70e80de69f5ff4c37187c3912e5874
("ALSA: info: Register proc entries recursively, too") where the call
to snd_info_card_register was removed and no longer setting the error
return in err. When snd_info_create_card_entry fails to allocate a
an entry, the error path exits with garbage in err. Fix is to return
-ENOMEM if entry fails to be allocated.
Fixes: 2471b6c80a ("ALSA: info: Register proc entries recursively, too")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions