fix error path in snd_config_hook_load_for_all_cards()
authorJaroslav Kysela <perex@perex.cz>
Sun, 25 Nov 2007 22:19:49 +0000 (23:19 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 25 Nov 2007 22:19:49 +0000 (23:19 +0100)
src/conf.c

index 16b9c00..321dc9a 100644 (file)
@@ -2897,7 +2897,7 @@ int snd_config_hook_load_for_all_cards(snd_config_t *root, snd_config_t *config,
                                return err;
                        if (snd_config_search(root, fdriver, &n) >= 0) {
                                if (snd_config_get_string(n, &driver) < 0)
-                                       continue;
+                                       goto __err;
                                while (1) {
                                        char *s = strchr(driver, '.');
                                        if (s == NULL)
@@ -2905,7 +2905,7 @@ int snd_config_hook_load_for_all_cards(snd_config_t *root, snd_config_t *config,
                                        driver = s + 1;
                                }
                                if (snd_config_search(root, driver, &n) >= 0)
-                                       continue;
+                                       goto __err;
                        } else {
                                driver = fdriver;
                        }