kvm, cpuid: Fix sparse warning
authorBorislav Petkov <bp@suse.de>
Wed, 6 Nov 2013 14:46:02 +0000 (15:46 +0100)
committerGleb Natapov <gleb@redhat.com>
Thu, 7 Nov 2013 10:27:46 +0000 (12:27 +0200)
commit1b2ca42267fe8c4e909312f2b83dfef882cf6234
tree227101073f1780d1b763e9e04389cf1fac3e520a
parenta890b6fefd1775a1c3a7d8fe8af968a3a7b23c04
kvm, cpuid: Fix sparse warning

We need to copy padding to kernel space first before looking at it.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/cpuid.c