diff options
| author | Greg Kurz | 2017-07-12 11:48:39 +0200 |
|---|---|---|
| committer | David Gibson | 2017-07-17 07:07:05 +0200 |
| commit | e49c63d5b3234da0debf53cab7ee67de3a4a6a80 (patch) | |
| tree | ddc2c27105498331b3b367c3d8a93bb25751e461 /scripts | |
| parent | spapr: Implement DR-indicator for physical DRCs only (diff) | |
| download | qemu-e49c63d5b3234da0debf53cab7ee67de3a4a6a80.tar.gz qemu-e49c63d5b3234da0debf53cab7ee67de3a4a6a80.tar.xz 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 'scripts')
0 files changed, 0 insertions, 0 deletions
