diff options
author | 2020-05-19 10:43:01 +0200 | |
---|---|---|
committer | 2020-05-22 17:05:08 +0200 | |
commit | 27cd5511feffea3956d081585316272795e45bce (patch) | |
tree | 20af23299bc6873cfb18ab941d3ae13e1ad3f0cf /drivers/firmware/efi/libstub/x86-stub.c | |
parent | efi/libstub: Don't parse overlong command lines (diff) | |
download | linux-27cd5511feffea3956d081585316272795e45bce.tar.gz linux-27cd5511feffea3956d081585316272795e45bce.tar.bz2 linux-27cd5511feffea3956d081585316272795e45bce.zip |
efi/libstub: Use pool allocation for the command line
Now that we removed the memory limit for the allocation of the
command line, there is no longer a need to use the page based
allocator so switch to a pool allocation instead.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/firmware/efi/libstub/x86-stub.c')
-rw-r--r-- | drivers/firmware/efi/libstub/x86-stub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/efi/libstub/x86-stub.c b/drivers/firmware/efi/libstub/x86-stub.c index 37154bb93c59..072b7cf40475 100644 --- a/drivers/firmware/efi/libstub/x86-stub.c +++ b/drivers/firmware/efi/libstub/x86-stub.c @@ -404,7 +404,7 @@ efi_status_t __efiapi efi_pe_entry(efi_handle_t handle, hdr->type_of_loader = 0x21; /* Convert unicode cmdline to ascii */ - cmdline_ptr = efi_convert_cmdline(image, &options_size, ULONG_MAX); + cmdline_ptr = efi_convert_cmdline(image, &options_size); if (!cmdline_ptr) goto fail; |