efi/libstub: Fix error message in handle_cmdline_files()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 21 Feb 2020 19:18:29 +0000 (20:18 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 23 Feb 2020 20:57:31 +0000 (21:57 +0100)
The memory for files is allocated not reallocated.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Link: https://lore.kernel.org/r/20200221191829.18149-1-xypron.glpk@gmx.de
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/file.c

index be78f64..d4c7e5f 100644 (file)
@@ -190,7 +190,7 @@ static efi_status_t handle_cmdline_files(efi_loaded_image_t *image,
                                                            &alloc_addr,
                                                            hard_limit);
                        if (status != EFI_SUCCESS) {
-                               pr_efi_err("Failed to reallocate memory for files\n");
+                               pr_efi_err("Failed to allocate memory for files\n");
                                goto err_close_file;
                        }