alsa-utils/alsactl
Sören Tempel 6018c2014a alsactl: load_state: Only delete config if one was loaded
If load_configuration fails with open_failed == true, load_state will
jump to the out label without config being initialized and pass this
uninitialized config value to snd_config_delete. This commit fixes this
issue by initializing config with NULL and checking if it is non-null
before invoking snd_config_delete.

Fixes: https://github.com/alsa-project/alsa-utils/pull/94
Fixes: f138117 ("alsactl: load_state() - initialize config variable for the open_failed case")
BugLink: https://github.com/alsa-project/alsa-utils/issues/93
Signed-off-by: Sören Tempel <soeren+git@soeren-tempel.net>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-06-07 19:06:19 +02:00
..
init alsactl: 00main - fix typo in goto label 2020-10-13 17:30:15 +02:00
.gitignore alsactl: systemd and udev hookup 2010-11-23 10:42:35 +01:00
90-alsa-restore.rules.in alsactl: Fixup test for mydatadir/sbindir 2014-06-13 11:54:45 +02:00
alsa-restore.service.in alsactl: Remove asound.state file check from alsa-restore.service again 2020-12-11 23:55:34 +01:00
alsa-state.service.in alsactl: Move systemd unit start-up from basic.target to sound.target 2017-10-06 14:32:16 +02:00
alsactl.1 alsactl: clean the boot / hotplug card specific configuration directory 2021-04-13 11:16:09 +02:00
alsactl.c alsactl: return error value in dump_config_tree() 2021-06-04 09:53:56 +02:00
alsactl.h alsactl: clean the boot / hotplug card specific configuration directory 2021-04-13 11:16:09 +02:00
alsactl_init.xml alsactl: Read only *.conf files when a directory is passed via INCLUDE 2012-06-14 16:06:42 +02:00
clean.c alsactl: snd_ctl_elem_id_compare was renamed to snd_ctl_elem_id_compare_set 2021-03-23 17:52:13 +01:00
daemon.c alsactl: add dump-cfg and dump-state commands 2021-03-07 19:58:33 +01:00
init_parse.c alsactl: init() - return error value from snd_card_iterator_sinit() call 2021-06-04 09:56:20 +02:00
init_sysdeps.c alsa-utils check if __USE_BSD is defined before compiling "BSD functions" 2008-12-08 11:55:27 +01:00
init_sysfs.c alsactl: sysfs - add /sys/kernel/uevent_seqnum check to init 2019-11-25 18:01:32 +01:00
init_ucm.c alsactl: ucm - try both fixed boot and boot sequences 2021-04-13 19:19:01 +02:00
init_utils_run.c Initial 'alsactl init' implementation 2008-07-31 15:45:08 +02:00
init_utils_string.c Fix misc compile warnings in alsactl 2009-02-18 15:34:57 +01:00
list.h Initial 'alsactl init' implementation 2008-07-31 15:45:08 +02:00
lock.c alsactl: Fix race at creating a lock file 2020-12-11 23:46:23 +01:00
Makefile.am alsactl: add 'clean' command to remove the application controls 2021-03-04 21:15:56 +01:00
monitor.c alsactl: use card iterator functions for all card loops 2021-03-11 09:23:33 +01:00
state.c alsactl: load_state: Only delete config if one was loaded 2021-06-07 19:06:19 +02:00
utils.c alsactl: fix lock_fd unlock in load_configuration() - error path 2021-06-04 10:08:18 +02:00