commit | 89c774beb24924963aa146784a149e47efb29d82 | [log] [tgz] |
---|---|---|
author | Gleb Natapov <gleb@redhat.com> | Tue Oct 01 19:58:36 2013 +0300 |
committer | Christoffer Dall <christoffer.dall@linaro.org> | Thu Oct 02 17:18:09 2014 +0200 |
tree | 3cc34d0cf1c1a6140bdc0cd1c93820cafcc1d06c | |
parent | df50e5da2c1c65f1db1e9186112b57a8dd0b41ae [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> (cherry picked from commit a2ac07fe292ea41296049dfdbfeed203e2467ee7) Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>