commit | a2ac07fe292ea41296049dfdbfeed203e2467ee7 | [log] [tgz] |
---|---|---|
author | Gleb Natapov <gleb@redhat.com> | Tue Oct 01 19:58:36 2013 +0300 |
committer | Gleb Natapov <gleb@redhat.com> | Thu Oct 03 10:08:52 2013 +0300 |
tree | 93f6f81ef917245073ffdbc89123dd74cd8ccdd4 | |
parent | 517bf8fc211d37d3aa005fb35f9ee7f1d35cb860 [diff] |
Fix NULL dereference in gfn_to_hva_prot() 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>