projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a14ca0
)
xenbaked.c: Fix return handling for case of mmap failure
author
Don Slutz
<dslutz@verizon.com>
Mon, 28 Jul 2014 16:06:02 +0000
(12:06 -0400)
committer
Ian Campbell
<ian.campbell@citrix.com>
Wed, 30 Jul 2014 11:42:18 +0000
(12:42 +0100)
mmap() returns MAP_FAILED not NULL.
Signed-off-by: Don Slutz <dslutz@verizon.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/xenmon/xenbaked.c
patch
|
blob
|
history
diff --git
a/tools/xenmon/xenbaked.c
b/tools/xenmon/xenbaked.c
index 985f1dd12354cb1fb96278010413573ee17b58c9..dc61d14f8edb66c3b8186b4d4daf2d1f2eb25d0e 100644
(file)
--- a/
tools/xenmon/xenbaked.c
+++ b/
tools/xenmon/xenbaked.c
@@
-674,7
+674,7
@@
static void alloc_qos_data(int ncpu)
new_qos = (_new_qos_data *) mmap(0, sizeof(_new_qos_data), PROT_READ|PROT_WRITE,
MAP_SHARED, qos_fd, off);
off += i;
- if (new_qos ==
NULL
) {
+ if (new_qos ==
MAP_FAILED
) {
PERROR("mmap");
exit(3);
}