]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitf85c758dbee54cc3612a6e873ef7cecdb66ebee5
treeb00f5e6a41ea1daf9a1c61d57b207708b073a1f3
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
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