]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Remove dynamic memory allocation for stats header
authorBen Gardon <bgardon@google.com>
Mon, 13 Jun 2022 21:25:14 +0000 (21:25 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:51:42 +0000 (04:51 -0400)
commit03936270273f207f2d61fa3a3828fd6cd704bd2d
tree80e7dedde3aba1695ae9f70bc010779b3eb4fd20
parent62faa6e57f9674d5af1e071835b6fbbd1702ba4e
KVM: selftests: Remove dynamic memory allocation for stats header

There's no need to allocate dynamic memory for the stats header since
its size is known at compile time.

Reviewed-by: David Matlack <dmatlack@google.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20220613212523.3436117-2-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/kvm_binary_stats_test.c