summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2020-02-23 11:13:12 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2020-02-23 11:34:26 +0300
commitdd58f3c95c98e6e2cf30d9e562cae0503c5f2713 (patch)
treec85d23c8c6359ffc9615347224118fafa8e04aba /tools/perf/util/scripting-engines/trace-event-python.c
parentd80b64ff297e40c2b6f7d7abc1b3eba70d22a068 (diff)
downloadlinux-dd58f3c95c98e6e2cf30d9e562cae0503c5f2713.tar.xz
KVM: fix error handling in svm_hardware_setup
rename svm_hardware_unsetup as svm_hardware_teardown, move it before svm_hardware_setup, and call it to free all memory if fail to setup in svm_hardware_setup, otherwise memory will be leaked remove __exit attribute for it since it is called in __init function Signed-off-by: Li RongQing <lirongqing@baidu.com> Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions