]> xenbits.xensource.com Git - people/aperard/xen-arm.git/commitdiff
x86/HVM: add missing assert to stdvga's mmio_move()
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Dec 2012 12:45:57 +0000 (13:45 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Dec 2012 12:45:57 +0000 (13:45 +0100)
... to match the IOREQ_READ path.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/stdvga.c

index 632b214eb6c1026be19956c08359efcd23cc6606..331fca0ff4f054899f9780d168d68040089e973e 100644 (file)
@@ -519,6 +519,7 @@ static int mmio_move(struct hvm_hw_stdvga *s, ioreq_t *p)
                             put_page(dp);
                         return 0;
                     }
+                    ASSERT(!dp);
                     tmp = stdvga_mem_read(data, p->size);
                 }
                 stdvga_mem_write(addr, tmp, p->size);