summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSiddharth Chandrasekaran <sidcha@amazon.de>2021-05-03 14:21:11 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2021-05-07 06:06:14 -0400
commitaca352886ebdd675b5131ed4c83bf5477eee5d72 (patch)
tree8745e7e5fb654f4918ae5db0f335e92b7fdf29c9 /tools/perf/scripts/python/export-to-postgresql.py
parent5f443e424efab56baa8021da04878f88eb0815d4 (diff)
KVM: x86: Hoist input checks in kvm_add_msr_filter()
In ioctl KVM_X86_SET_MSR_FILTER, input from user space is validated after a memdup_user(). For invalid inputs we'd memdup and then call kfree unnecessarily. Hoist input validation to avoid kfree altogether. Signed-off-by: Siddharth Chandrasekaran <sidcha@amazon.de> Message-Id: <20210503122111.13775-1-sidcha@amazon.de> Reviewed-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions