KVM: arm/arm64: vgic-v3: Fix off-by-one LR access
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 10 Apr 2017 09:19:44 +0000 (10:19 +0100)
committerChristoffer Dall <cdall@linaro.org>
Wed, 19 Apr 2017 15:28:38 +0000 (17:28 +0200)
commitcffcd9df10daa753610d79f018466f9c61603b97
treef039d5228ca40d77bfb8e292e61f07d97c7f8f89
parentff567614d58551b650a2375b50be368fbfed5cd5
KVM: arm/arm64: vgic-v3: Fix off-by-one LR access

When iterating over the used LRs, be careful not to try to access
an unused LR, or even an unimplemented one if you're unlucky...

Reviewed-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
virt/kvm/arm/hyp/vgic-v3-sr.c