diff options
author | nixiaoming <[email protected]> | 2017-08-31 18:51:09 +0800 |
---|---|---|
committer | Paul Mackerras <[email protected]> | 2017-09-01 10:17:58 +1000 |
commit | 43f6b0cfb2e4dfd5aa452a1d44491e805e37b7da (patch) | |
tree | cea9bf0ef257d98d80b3a24c755f30b2080ddb9f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4dafecde443a3f5690d68a3a0d32202b634b2675 (diff) |
KVM: PPC: Book3S HV: Fix memory leak in kvm_vm_ioctl_get_htab_fd
We do ctx = kzalloc(sizeof(*ctx), GFP_KERNEL) and then later on call
anon_inode_getfd(), but if that fails we don't free ctx, so that
memory gets leaked. To fix it, this adds kfree(ctx) in the failure
path.
Signed-off-by: nixiaoming <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions