arm/arm64: KVM: fix potential NULL dereference in user_mem_abort()
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 17 Sep 2014 21:56:17 +0000 (14:56 -0700)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 10 Oct 2014 11:07:37 +0000 (13:07 +0200)
commit37b544087ef3f65ca68465ba39291a07195dac26
treee6fcb2b1fa3bdca8ca899c7bc515d4848a909296
parente9e8578b6cdfba0259e99e79f0cb80c55c99b3c2
arm/arm64: KVM: fix potential NULL dereference in user_mem_abort()

Handle the potential NULL return value of find_vma_intersection()
before dereferencing it.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/mmu.c