]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
um: hostaudio: Do not propagate dsp parameter to kernel
authorTiwei Bie <tiwei.btw@antgroup.com>
Fri, 11 Oct 2024 04:04:39 +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-8-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/drivers/hostaudio_kern.c

index 9d228878cea2ed7d970992a46a18afa938c4a941..09af903b75aed8687308731c0b3e2ec24a09154f 100644 (file)
@@ -48,6 +48,7 @@ MODULE_PARM_DESC(mixer, MIXER_HELP);
 #ifndef MODULE
 static int set_dsp(char *name, int *add)
 {
+       *add = 0;
        dsp = name;
        return 0;
 }