KVM: fix EFER read buffer overflow
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 4 Aug 2009 09:08:45 +0000 (02:08 -0700)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:33:21 +0000 (08:33 +0300)
commit3a34a8810b2ed316bfe58fa53640e8d30de3f6c2
tree8ddc7747bc7070d98b2746f4fad865f83e4d1996
parent1f3ee616dd21ff155f781c35509229bf2788c072
KVM: fix EFER read buffer overflow

Check whether index is within bounds before grabbing the element.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Avi Kivity <avi@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c