]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
kvm: svm: fix potential get_num_contig_pages overflow
authorDavid Rientjes <rientjes@google.com>
Tue, 19 Mar 2019 22:19:56 +0000 (15:19 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Apr 2019 18:48:59 +0000 (20:48 +0200)
commitede885ecb2cdf8a8dd5367702e3d964ec846a2d5
tree37259d733ebe35446d832aefe82c8be529691196
parent79a3aaa7b82e3106be97842dedfd8429248896e6
kvm: svm: fix potential get_num_contig_pages overflow

get_num_contig_pages() could potentially overflow int so make its type
consistent with its usage.

Reported-by: Cfir Cohen <cfir@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c