Skip to content

Commit 7da0c61

Browse files
btw616jmberg-intel
authored andcommitted
um: Do not propagate dtb parameter to kernel
This parameter is UML specific and is unknown to kernel. It should not be propagated to kernel, otherwise it will be passed to user space as an environment option by kernel with a warning like: Unknown kernel command line parameters "dtb=/foo", will be passed to user space. Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com> Link: https://patch.msgid.link/20241011040441.1586345-5-tiwei.btw@antgroup.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 5c78a58 commit 7da0c61

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/um/kernel/dtb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ void uml_dtb_init(void)
3131

3232
static int __init uml_dtb_setup(char *line, int *add)
3333
{
34+
*add = 0;
3435
dtb = line;
3536
return 0;
3637
}

0 commit comments

Comments
 (0)