KVM: Use kmemdup() instead of kmalloc/memcpy
authorSasha Levin <levinsasha928@gmail.com>
Sun, 4 Dec 2011 17:36:28 +0000 (19:36 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 27 Dec 2011 09:22:20 +0000 (11:22 +0200)
Switch to kmemdup() in two places to shorten the code and avoid possible bugs.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

No differences found