Skip to content

Commit 45aa602

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/um/os-Linux/skas/process.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,7 @@ static bool noreboot;
622622

623623
static int __init noreboot_cmd_param(char *str, int *add)
624624
{
625+
*add = 0;
625626
noreboot = true;
626627
return 0;
627628
}

0 commit comments

Comments
 (0)