]> git.baikalelectronics.ru Git - kernel.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)
committerAvi Kivity <avi@redhat.com>
Sun, 30 Oct 2011 10:20:55 +0000 (12:20 +0200)
commit4452da7622a678deecdef4f34f73aef2f14c44d2
treef5e12258ee93dc20c230e7dc60620c6d0194142e
parent570aea57a4e1a5caa458c00406238086ec30e336
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