KVM: s390: check cpu_id prior to using it
authorCarsten Otte <cotte@de.ibm.com>
Tue, 18 Oct 2011 10:27:12 +0000 (12:27 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 30 Oct 2011 10:20:55 +0000 (12:20 +0200)
commit4d47555a80495657161a7e71ec3014ff2021e450
treef5e12258ee93dc20c230e7dc60620c6d0194142e
parenta3e06bbe8445f57eb949e6474c5a9b30f24d2057
KVM: s390: check cpu_id prior to using it

We use the cpu id provided by userspace as array index here. Thus we
clearly need to check it first. Ooops.

CC: <stable@vger.kernel.org>
Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/s390/kvm/kvm-s390.c