]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kvm: commonize allocation of the new memory slots
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Nov 2014 09:46:45 +0000 (10:46 +0100)
committerJiri Slaby <jslaby@suse.cz>
Mon, 27 Apr 2015 17:59:55 +0000 (19:59 +0200)
commit4b68cd72580b97730a1676c98217077b98c33f08
tree039ce629ca4fed649a6ebf2401cbb0aab26d1973
parent53cc322aa81ff2cdbc37f9a6c9fefe55c04e5765
kvm: commonize allocation of the new memory slots

commit f2a81036516e2b97c07c49dd6d51d36bfa43593d upstream.

The two kmemdup invocations can be unified.  I find that the new
placement of the comment makes it easier to see what happens.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
virt/kvm/kvm_main.c