aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/c++/clang-test.cpp
diff options
context:
space:
mode:
authorCédric Le Goater <[email protected]>2019-07-18 23:51:54 +0200
committerMichael Ellerman <[email protected]>2019-07-19 13:41:12 +1000
commit9798f4ea71eaf8eaad7e688c5b298528089c7bf8 (patch)
tree48da83581c241db13960f4188f9c1664e7ccb9e6 /tools/perf/util/c++/clang-test.cpp
parent4d202c8c8ed3822327285747db1765967110b274 (diff)
KVM: PPC: Book3S HV: XIVE: fix rollback when kvmppc_xive_create fails
The XIVE device structure is now allocated in kvmppc_xive_get_device() and kfree'd in kvmppc_core_destroy_vm(). In case of an OPAL error when allocating the XIVE VPs, the kfree() call in kvmppc_xive_*create() will result in a double free and corrupt the host memory. Fixes: 5422e95103cf ("KVM: PPC: Book3S HV: XIVE: Replace the 'destroy' method by a 'release' method") Cc: [email protected] # v5.2+ Signed-off-by: Cédric Le Goater <[email protected]> Tested-by: Michael Ellerman <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/c++/clang-test.cpp')
0 files changed, 0 insertions, 0 deletions