diff options
author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2023-04-20 10:21:15 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-04-20 10:21:15 +0100 |
commit | ad5c6ddea327758daa9f0e6edd916be39dce7dca (patch) | |
tree | 10a86c1266076cbc73620777d1da279dbc1d4262 /io/task.c | |
parent | 7a98c8377b7466fbcbc488425d6b6bff85437013 (diff) | |
download | qemu-ad5c6ddea327758daa9f0e6edd916be39dce7dca.zip qemu-ad5c6ddea327758daa9f0e6edd916be39dce7dca.tar.gz qemu-ad5c6ddea327758daa9f0e6edd916be39dce7dca.tar.bz2 |
target/arm: Initialize debug capabilities only once
kvm_arm_init_debug() used to be called several times on a SMP system as
kvm_arch_init_vcpu() calls it. Move the call to kvm_arch_init() to make
sure it will be called only once; otherwise it will overwrite pointers
to memory allocated with the previous call and leak it.
Fixes: e4482ab7e3 ("target-arm: kvm - add support for HW assisted debug")
Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-id: 20230405153644.25300-1-akihiko.odaki@daynix.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'io/task.c')
0 files changed, 0 insertions, 0 deletions