]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - sound/soc/soc-core.c
ASoC: Hold client_mutex while calling snd_soc_instantiate_cards()
[~shefty/rdma-dev.git] / sound / soc / soc-core.c
index 441285ade024ff33589cd22204ef5cb82a1f14ea..02ae7bea3b50401fbace05991b7472f6d6633c92 100644 (file)
@@ -3072,7 +3072,9 @@ int snd_soc_register_dais(struct device *dev,
                pr_debug("Registered DAI '%s'\n", dai->name);
        }
 
+       mutex_lock(&client_mutex);
        snd_soc_instantiate_cards();
+       mutex_unlock(&client_mutex);
        return 0;
 
 err: