]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: KVM: fix KVM_CAP_ARM_SET_DEVICE_ADDR reporting
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 3 Apr 2013 09:43:13 +0000 (10:43 +0100)
committerChristoffer Dall <cdall@cs.columbia.edu>
Tue, 16 Apr 2013 23:21:24 +0000 (16:21 -0700)
commit3087d1c3ffda15921465a469a16a2b1f103466f0
tree07d59eb4dbf79a058e5c1d71ee3d6b0cc8f8a679
parentc3ee6b128226812d506bf993ab8048efe80a3fc1
ARM: KVM: fix KVM_CAP_ARM_SET_DEVICE_ADDR reporting

Commit 2fd81f4072d3 (KVM: ARM: Introduce KVM_ARM_SET_DEVICE_ADDR
ioctl) added support for the KVM_CAP_ARM_SET_DEVICE_ADDR capability,
but failed to add a break in the relevant case statement, returning
the number of CPUs instead.

Luckilly enough, the CONFIG_NR_CPUS=0 patch hasn't been merged yet
(https://lkml.org/lkml/diff/2012/3/31/131/1), so the bug wasn't
noticed.

Just give it a break!

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
arch/arm/kvm/arm.c