commit | ff5c2c0316ff0e3e2dba3ca14167d994453df093 | [log] [tgz] |
---|---|---|
author | Sasha Levin <levinsasha928@gmail.com> | Sun Dec 04 19:36:29 2011 +0200 |
committer | Avi Kivity <avi@redhat.com> | Tue Dec 27 11:22:21 2011 +0200 |
tree | a2cba54bb5486f508315842ac9ee026cd5d87981 | |
parent | cdfca7b346e6dbab1ba33260c28ccb8333485a5b [diff] |
KVM: Use memdup_user instead of kmalloc/copy_from_user 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>