From 1b5ec2346703c060d26ada7d95fe9aaf476b1947 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 6 May 2013 14:36:15 +0200 Subject: memory: return MemoryRegion from qemu_ram_addr_from_host It will be needed in the next patch. Reviewed-by: Jan Kiszka Signed-off-by: Paolo Bonzini --- cputlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cputlb.c') diff --git a/cputlb.c b/cputlb.c index be24080ac1..828007ccc0 100644 --- a/cputlb.c +++ b/cputlb.c @@ -162,7 +162,7 @@ static inline ram_addr_t qemu_ram_addr_from_host_nofail(void *ptr) { ram_addr_t ram_addr; - if (qemu_ram_addr_from_host(ptr, &ram_addr)) { + if (qemu_ram_addr_from_host(ptr, &ram_addr) == NULL) { fprintf(stderr, "Bad ram pointer %p\n", ptr); abort(); } -- cgit v1.2.1