summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2016-02-17 21:22:22 +0000
committerChristophe Fergeau <cfergeau@redhat.com>2016-03-29 11:54:24 +0200
commit5311f4f0042032341c623eec32c650dd32d25220 (patch)
tree5f4ffdc3472b270f5b34476358452850baee91f2
parentcac6a78594d8b35acf952762386ab128e2220681 (diff)
memslot: do not crash if guest provide a wrong address
This could happen with buggy driver. This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1264356 Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
-rw-r--r--server/red_memslots.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/red_memslots.c b/server/red_memslots.c
index 1b3ec622..817f1587 100644
--- a/server/red_memslots.c
+++ b/server/red_memslots.c
@@ -62,7 +62,7 @@ int validate_virt(RedMemSlotInfo *info, unsigned long virt, int slot_id,
if (virt < slot->virt_start_addr || (virt + add_size) > slot->virt_end_addr) {
print_memslots(info);
- spice_critical("virtual address out of range\n"
+ spice_warning("virtual address out of range\n"
" virt=0x%lx+0x%x slot_id=%d group_id=%d\n"
" slot=0x%lx-0x%lx delta=0x%lx",
virt, add_size, slot_id, group_id,