diff options
author | Koen Kooi <koen.kooi@linaro.org> | 2015-11-30 13:25:40 +0100 |
---|---|---|
committer | Koen Kooi <koen.kooi@linaro.org> | 2015-11-30 13:25:40 +0100 |
commit | 9b083ec3fe56ad589b782699f0fc7e619b04ff07 (patch) | |
tree | 7f17487016ca00252847498a19570d3914685545 /meta-linaro/recipes-extra/efibootmgr/files/efibootmgr-0.5.4-make_boot_var-does-not-check-for-failed-status-with-.patch | |
parent | 904cacc9281285a3f5c73ae78ee7259718793a4c (diff) |
efibootmgr: drop, meta-oe has 0.12
0.5.4 breaks with gcc 5.2 as well.
Change-Id: If8ad4d38c6c848f252d56aabe11cb0a8353b77ee
Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Diffstat (limited to 'meta-linaro/recipes-extra/efibootmgr/files/efibootmgr-0.5.4-make_boot_var-does-not-check-for-failed-status-with-.patch')
-rw-r--r-- | meta-linaro/recipes-extra/efibootmgr/files/efibootmgr-0.5.4-make_boot_var-does-not-check-for-failed-status-with-.patch | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/meta-linaro/recipes-extra/efibootmgr/files/efibootmgr-0.5.4-make_boot_var-does-not-check-for-failed-status-with-.patch b/meta-linaro/recipes-extra/efibootmgr/files/efibootmgr-0.5.4-make_boot_var-does-not-check-for-failed-status-with-.patch deleted file mode 100644 index 75374acf..00000000 --- a/meta-linaro/recipes-extra/efibootmgr/files/efibootmgr-0.5.4-make_boot_var-does-not-check-for-failed-status-with-.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 5fcfccb39089febb89945b841f489b5acc7638ce Mon Sep 17 00:00:00 2001 -From: Lane Winner <lane.winner@oracle.com> -Date: Tue, 24 Apr 2012 12:58:57 -0500 -Subject: [PATCH 5/5] make_boot_var does not check for failed status with - create_variable. This can result in a memory leak. - Additionally the user should be notified of the - problem. - -We encounter this issue on one system after filling up the UEFI boot list -with dummy devices. - -The patch fix the problem. It was verified on a Mensa system using RHEL 6.0 - -Signed-off-by: Yinghai Lu<yinghai@kernel.org> ---- - src/efibootmgr/efibootmgr.c | 8 +++++++- - 1 file changed, 7 insertions(+), 1 deletion(-) - -diff --git a/src/efibootmgr/efibootmgr.c b/src/efibootmgr/efibootmgr.c -index de67af0..236365a 100644 ---- a/src/efibootmgr/efibootmgr.c -+++ b/src/efibootmgr/efibootmgr.c -@@ -239,6 +239,7 @@ warn_duplicate_name(list_t *boot_list) - static var_entry_t * - make_boot_var(list_t *boot_list) - { -+ efi_status_t status; - var_entry_t *boot; - int free_number; - list_t *pos; -@@ -271,7 +272,12 @@ make_boot_var(list_t *boot_list) - free(boot); - return NULL; - } -- create_variable(&boot->var_data); -+ -+ status = create_variable(&boot->var_data); -+ if (status != EFI_SUCCESS) { -+ free(boot); -+ return NULL; -+ } - list_add_tail(&boot->list, boot_list); - return boot; - } --- -1.8.0 - |