projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30e7a6f
)
tools/libxl: fix range check in main_psr_cat_cbm_set
author
Chao Peng
<chao.p.peng@linux.intel.com>
Tue, 29 Sep 2015 07:49:53 +0000
(15:49 +0800)
committer
Ian Campbell
<ian.campbell@citrix.com>
Tue, 29 Sep 2015 09:56:38 +0000
(10:56 +0100)
The 'end' should be inclusive.
Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/xl_cmdimpl.c
patch
|
blob
|
history
diff --git
a/tools/libxl/xl_cmdimpl.c
b/tools/libxl/xl_cmdimpl.c
index 265b78c4fad9765d0faf7b4af6f16d65b3c17336..365798ba1f8799b97584d2df66f356fe5b1924fb 100644
(file)
--- a/
tools/libxl/xl_cmdimpl.c
+++ b/
tools/libxl/xl_cmdimpl.c
@@
-8553,7
+8553,7
@@
int main_psr_cat_cbm_set(int argc, char **argv)
len = libxl_string_list_length(&socket_list);
for (i = 0; i < len; i++) {
parse_range(socket_list[i], &start, &end);
- for (j = start; j < end; j++)
+ for (j = start; j <
=
end; j++)
libxl_bitmap_set(&target_map, j);
}