]> git.baikalelectronics.ru Git - 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)
commit50fe9f0e82e98ecf38b1d5603e239a854648763e
tree37259d733ebe35446d832aefe82c8be529691196
parent93e08937bc58c51cee8c371b7593b2be4a6d736c
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