summaryrefslogtreecommitdiff
path: root/drivers/firmware
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-02-21 20:18:29 +0100
committerArd Biesheuvel <ardb@kernel.org>2020-02-23 21:57:31 +0100
commitf01dd5b3d1f4fad9ad4f309632f51ed940991dab (patch)
tree7fcff1dd46ea9e1f88b7fa5e63cdf0ba18ba9428 /drivers/firmware
parentba832f68dcf171c5d4439e763d81d14a149355a9 (diff)
efi/libstub: Fix error message in handle_cmdline_files()
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>
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/efi/libstub/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/efi/libstub/file.c b/drivers/firmware/efi/libstub/file.c
index be78f64f8d80..d4c7e5f59d2c 100644
--- a/drivers/firmware/efi/libstub/file.c
+++ b/drivers/firmware/efi/libstub/file.c
@@ -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;
}