Skip to content

Commit 5c78a58

Browse files
btw616jmberg-intel
authored andcommitted
um: Do not propagate uml_dir 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 "uml_dir=/foo", will be passed to user space. Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com> Link: https://patch.msgid.link/20241011040441.1586345-4-tiwei.btw@antgroup.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent cb055b2 commit 5c78a58

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/um/os-Linux/umid.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ char *get_umid(void)
358358

359359
static int __init set_uml_dir(char *name, int *add)
360360
{
361+
*add = 0;
362+
361363
if (*name == '\0') {
362364
os_warn("uml_dir can't be an empty string\n");
363365
return 0;

0 commit comments

Comments
 (0)