diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c index 0aca39762ed0ec981fb4f612741010a255a97587..bb1261591a1f300e17f8cb27e36071e5b3fb28a8 100644 --- a/sound/core/pcm_lib.c +++ b/sound/core/pcm_lib.c @@ -2595,6 +2595,8 @@ int snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream, }; int err; + if (WARN_ON(pcm->streams[stream].chmap_kctl)) + return -EBUSY; info = kzalloc(sizeof(*info), GFP_KERNEL); if (!info) return -ENOMEM;