[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/7] contrib/elf2dmp: Always destroy PA space
From: |
Akihiko Odaki |
Subject: |
[PATCH 2/7] contrib/elf2dmp: Always destroy PA space |
Date: |
Sun, 03 Mar 2024 19:50:36 +0900 |
Destroy PA space even if paging base couldn't be found, fixing memory
leak.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
contrib/elf2dmp/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/elf2dmp/main.c b/contrib/elf2dmp/main.c
index cbc38a7c103a..dd686280f981 100644
--- a/contrib/elf2dmp/main.c
+++ b/contrib/elf2dmp/main.c
@@ -553,7 +553,7 @@ int main(int argc, char *argv[])
if (fix_dtb(&vs, &qemu_elf)) {
eprintf("Failed to find paging base\n");
err = 1;
- goto out_elf;
+ goto out_ps;
}
printf("CPU #0 IDT is at 0x%016"PRIx64"\n", state->idt.base);
--
2.44.0
- [PATCH 0/7] contrib/elf2dmp: Improve robustness, Akihiko Odaki, 2024/03/03
- [PATCH 1/7] contrib/elf2dmp: Always check for PA resolution failure, Akihiko Odaki, 2024/03/03
- [PATCH 2/7] contrib/elf2dmp: Always destroy PA space,
Akihiko Odaki <=
- [PATCH 3/7] contrib/elf2dmp: Ensure segment fits in file, Akihiko Odaki, 2024/03/03
- [PATCH 4/7] contrib/elf2dmp: Use lduw_le_p() to read PDB, Akihiko Odaki, 2024/03/03
- [PATCH 5/7] contrib/elf2dmp: Use rol64() to decode, Akihiko Odaki, 2024/03/03
- [PATCH 7/7] MAINTAINERS: Add Akihiko Odaki as a elf2dmp reviewer, Akihiko Odaki, 2024/03/03