]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
um: hostaudio: Do not propagate mixer parameter to kernel
authorTiwei Bie <tiwei.btw@antgroup.com>
Fri, 11 Oct 2024 04:04:40 +0000 (12:04 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Oct 2024 07:52:49 +0000 (09:52 +0200)
This parameter is UML specific and is unknown to kernel. It should
not be propagated to kernel, otherwise it will trigger a warning and
be passed to user space as an environment option.

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20241011040441.1586345-9-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/drivers/hostaudio_kern.c

index 09af903b75aed8687308731c0b3e2ec24a09154f..0ac149de1ac0132b9f68e6212c145a9d07226ca3 100644 (file)
@@ -57,6 +57,7 @@ __uml_setup("dsp=", set_dsp, "dsp=<dsp device>\n" DSP_HELP);
 
 static int set_mixer(char *name, int *add)
 {
+       *add = 0;
        mixer = name;
        return 0;
 }