Home
last modified time | relevance | path

Searched hist:"86 abac06" (Results 1 – 1 of 1) sorted by relevance

/qemu/linux-user/
H A Dmmap.c86abac06 Mon Sep 14 10:31:44 GMT 2015 Paolo Bonzini <pbonzini@redhat.com> linux-user: assert that target_mprotect cannot fail

All error conditions that target_mprotect checks are also checked
by target_mmap. EACCESS cannot happen because we are just removing
PROT_WRITE. ENOMEM should not happen because we are modifying a
whole VMA (and we have bigger problems anyway if it happens).

Fixes a Coverity false positive, where Coverity complains about
target_mprotect's return value being passed to tb_invalidate_phys_range.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>