Commit cdfca7b3 authored by Sasha Levin's avatar Sasha Levin Committed by Avi Kivity
Browse files

KVM: Use kmemdup() instead of kmalloc/memcpy



Switch to kmemdup() in two places to shorten the code and avoid possible bugs.

Signed-off-by: default avatarSasha Levin <levinsasha928@gmail.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 3f745f1e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment