]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
um: Do not propagate initrd parameter to kernel
authorTiwei Bie <tiwei.btw@antgroup.com>
Fri, 11 Oct 2024 04:04:41 +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. It specifies the name of the file
containing the initrd image, which is unknown to kernel.

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

index 47b8cb1a1156185ecd31cc655ed719fa356a6d51..99dba827461c8acfc9c87f1ba17ac985df86a711 100644 (file)
@@ -34,6 +34,7 @@ int __init read_initrd(void)
 
 static int __init uml_initrd_setup(char *line, int *add)
 {
+       *add = 0;
        initrd = line;
        return 0;
 }