|
@@ -972,6 +972,11 @@ u64 efi_mem_attributes(unsigned long phys_addr)
|
|
|
|
|
|
static int __init arch_parse_efi_cmdline(char *str)
|
|
static int __init arch_parse_efi_cmdline(char *str)
|
|
{
|
|
{
|
|
|
|
+ if (!str) {
|
|
|
|
+ pr_warn("need at least one option\n");
|
|
|
|
+ return -EINVAL;
|
|
|
|
+ }
|
|
|
|
+
|
|
if (parse_option_str(str, "old_map"))
|
|
if (parse_option_str(str, "old_map"))
|
|
set_bit(EFI_OLD_MEMMAP, &efi.flags);
|
|
set_bit(EFI_OLD_MEMMAP, &efi.flags);
|
|
if (parse_option_str(str, "debug"))
|
|
if (parse_option_str(str, "debug"))
|