diff options
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/arm/vgic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c index 902789ff4abb..685fc72fc751 100644 --- a/virt/kvm/arm/vgic.c +++ b/virt/kvm/arm/vgic.c | |||
@@ -149,7 +149,7 @@ static u32 *vgic_bytemap_get_reg(struct vgic_bytemap *x, int cpuid, u32 offset) | |||
149 | { | 149 | { |
150 | offset >>= 2; | 150 | offset >>= 2; |
151 | BUG_ON(offset > (VGIC_NR_IRQS / 4)); | 151 | BUG_ON(offset > (VGIC_NR_IRQS / 4)); |
152 | if (offset < 4) | 152 | if (offset < 8) |
153 | return x->percpu[cpuid] + offset; | 153 | return x->percpu[cpuid] + offset; |
154 | else | 154 | else |
155 | return x->shared + offset - 8; | 155 | return x->shared + offset - 8; |