projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db5127b
)
spapr: Fixes a leak in CAS
author
Alexey Kardashevskiy
<aik@ozlabs.ru>
Fri, 23 Aug 2019 02:39:57 +0000
(12:39 +1000)
committer
David Gibson
<david@gibson.dropbear.id.au>
Fri, 4 Oct 2019 00:25:23 +0000
(10:25 +1000)
Add a missing g_free(fdt) if the resulting tree is bigger
than the space allocated by SLOF.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/spapr.c
patch
|
blob
|
history
diff --git
a/hw/ppc/spapr.c
b/hw/ppc/spapr.c
index 7c3a4437765b1ff38af23c009d316b8a938037a4..c69c0341832ddce3cbb8a6c7b91a878c00fdb7ce 100644
(file)
--- a/
hw/ppc/spapr.c
+++ b/
hw/ppc/spapr.c
@@
-1026,6
+1026,7
@@
int spapr_h_cas_compose_response(SpaprMachineState *spapr,
_FDT((fdt_pack(fdt)));
if (fdt_totalsize(fdt) + sizeof(hdr) > size) {
+ g_free(fdt);
trace_spapr_cas_failed(size);
return -1;
}