]> 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)
commit7fee47972241b1e63658279f509366f529e779f8
tree37259d733ebe35446d832aefe82c8be529691196
parentb7a31ea379e672048cd04255d27306c97d980b41
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