tools/libxl: fix range check in main_psr_cat_cbm_set

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>
This commit is contained in:
Chao Peng authored and Ian Campbell committed 2015-09-29 10:56:38 +01:00
1 parent 30e7a6fde8
commit e364a9cece
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.