mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-17 01:56:36 -05:00
um: Do not propagate mem 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 "mem=2G", will be passed to user space. Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com> Link: https://patch.msgid.link/20241011040441.1586345-3-tiwei.btw@antgroup.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -139,6 +139,8 @@ EXPORT_SYMBOL(phys_mapping);
|
||||
static int __init uml_mem_setup(char *line, int *add)
|
||||
{
|
||||
char *retptr;
|
||||
|
||||
*add = 0;
|
||||
physmem_size = memparse(line,&retptr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user