mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
efi_loader: memory leak in efi_set_bootdev()
efi_dp_str() allocates memory which should be released after use.
Use %pD printf code. Adjust message wording.
Fixes: d837cb1e3b
("efi: Add debugging to efi_set_bootdev()")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
9897350c52
commit
868353daa3
1 changed files with 2 additions and 2 deletions
|
@ -119,9 +119,9 @@ void efi_set_bootdev(const char *dev, const char *devnr, const char *path,
|
||||||
efi_free_pool(image_tmp);
|
efi_free_pool(image_tmp);
|
||||||
}
|
}
|
||||||
bootefi_image_path = image;
|
bootefi_image_path = image;
|
||||||
log_debug("- recorded device %ls\n", efi_dp_str(device));
|
log_debug("- boot device %pD\n", device);
|
||||||
if (image)
|
if (image)
|
||||||
log_debug("- and image %ls\n", efi_dp_str(image));
|
log_debug("- image %pD\n", image);
|
||||||
} else {
|
} else {
|
||||||
log_debug("- efi_dp_from_name() failed, err=%lx\n", ret);
|
log_debug("- efi_dp_from_name() failed, err=%lx\n", ret);
|
||||||
efi_clear_bootdev();
|
efi_clear_bootdev();
|
||||||
|
|
Loading…
Reference in a new issue