]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:36 +0000 (15:35 -0400)
commite5610fce4a41f90092714b6eb4b12f107a74b494
tree0370dae2605e1c533b8aa44f152e201c2e4e683c
parentdc2d951a77c74c8140e6cf9aab2cbc9f4315b7c7
KVM: s390: check cpu_id prior to using it

commit 4d47555a80495657161a7e71ec3014ff2021e450 upstream.

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

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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/s390/kvm/kvm-s390.c