kvm: use kmalloc() instead of kzalloc() during iodev register/unregister
authorJason Wang <jasowang@redhat.com>
Tue, 25 Aug 2015 09:05:46 +0000 (17:05 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Oct 2015 13:06:29 +0000 (15:06 +0200)
commitd3febddde9c7a959dbb189a700e937db50fad4d6
tree9869821f4df76e998a9b9c83cf8354a1b6e52cba
parent1c1a9ce973a7863dd46767226bce2a5f12d48bc6
kvm: use kmalloc() instead of kzalloc() during iodev register/unregister

All fields of kvm_io_range were initialized or copied explicitly
afterwards. So switch to use kmalloc().

Cc: Gleb Natapov <gleb@kernel.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c
This page took 0.037595 seconds and 5 git commands to generate.