KVM: Use memdup_user instead of kmalloc/copy_from_user
authorSasha Levin <levinsasha928@gmail.com>
Sun, 4 Dec 2011 17:36:29 +0000 (19:36 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 27 Dec 2011 09:22:21 +0000 (11:22 +0200)
Switch to using memdup_user when possible. This makes code more
smaller and compact, and prevents errors.

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

No differences found