Fix NULL dereference in gfn_to_hva_prot()
authorGleb Natapov <gleb@redhat.com>
Tue, 1 Oct 2013 16:58:36 +0000 (19:58 +0300)
committerGleb Natapov <gleb@redhat.com>
Thu, 3 Oct 2013 07:08:52 +0000 (10:08 +0300)
gfn_to_memslot() can return NULL or invalid slot. We need to check slot
validity before accessing it.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>

No differences found