]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: masking out upper bits
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Jul 2017 08:14:26 +0000 (11:14 +0300)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 19 Jul 2017 11:35:12 +0000 (13:35 +0200)
commitd84414be5349ec0a07a65c995f76ca1068314766
treeb00f5e6a41ea1daf9a1c61d57b207708b073a1f3
parentc1e7f93cfc9ccbe5772b8d0eb3da04ab3bcc7881
KVM: x86: masking out upper bits

kvm_read_cr3() returns an unsigned long and gfn is a u64.  We intended
to mask out the bottom 5 bits but because of the type issue we mask the
top 32 bits as well.  I don't know if this is a real problem, but it
causes static checker warnings.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/x86.c