projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aae6e5
)
mmap(2) returns MAP_FAILED, not NULL, on failure
author
Michael McConville
<mmcco@mykolab.com>
Fri, 1 Dec 2017 18:31:57 +0000
(11:31 -0700)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Mon, 18 Dec 2017 14:07:02 +0000
(17:07 +0300)
Signed-off-by: Michael McConville <mmcco@mykolab.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/i386/xen/xen-mapcache.c
patch
|
blob
|
history
diff --git
a/hw/i386/xen/xen-mapcache.c
b/hw/i386/xen/xen-mapcache.c
index baab93b61476d1f8f6a06418336f60259ae55550..efa35dc6e0e2bcfde4c41ca6a154d59186c62733 100644
(file)
--- a/
hw/i386/xen/xen-mapcache.c
+++ b/
hw/i386/xen/xen-mapcache.c
@@
-199,7
+199,7
@@
static void xen_remap_bucket(MapCacheEntry *entry,
*/
vaddr_base = mmap(vaddr, size, PROT_READ | PROT_WRITE,
MAP_ANON | MAP_SHARED, -1, 0);
- if (vaddr_base ==
NULL
) {
+ if (vaddr_base ==
MAP_FAILED
) {
perror("mmap");
exit(-1);
}