[PATCH 9/9] um: Do not propagate initrd parameter to kernel

Tiwei Bie posted 9 patches 1 month, 2 weeks ago
[PATCH 9/9] um: Do not propagate initrd parameter to kernel
Posted by Tiwei Bie 1 month, 2 weeks ago
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>
---
 arch/um/kernel/initrd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/um/kernel/initrd.c b/arch/um/kernel/initrd.c
index 47b8cb1a1156..99dba827461c 100644
--- a/arch/um/kernel/initrd.c
+++ b/arch/um/kernel/initrd.c
@@ -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;
 }
-- 
2.34.1