diff options
author | Greg Kurz <groug@kaod.org> | 2017-07-12 11:48:39 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-07-17 15:07:05 +1000 |
commit | e49c63d5b3234da0debf53cab7ee67de3a4a6a80 (patch) | |
tree | ddc2c27105498331b3b367c3d8a93bb25751e461 /hw/net/etraxfs_eth.c | |
parent | 67fea71bf3be579ad0be5abe34cd6fa1bc65ad5b (diff) | |
download | qemu-e49c63d5b3234da0debf53cab7ee67de3a4a6a80.zip |
spapr: fix potential memory leak in spapr_core_plug()
Since commit 5c1da81215c7 ("spapr: Remove unnecessary differences between
hotplug and coldplug paths"), the CPU DT for the DRC is always allocated.
This causes a memory leak for pseries-2.6 and older machine types, that
don't support CPU hotplug and don't allocate DRCs for CPUs.
Reported-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/net/etraxfs_eth.c')
0 files changed, 0 insertions, 0 deletions