[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] tools/libxl: fix range check in main_psr_cat_cbm_set
commit e364a9cecea0bf6c5b02bea674745cd37ea0ad5c Author: Chao Peng <chao.p.peng@xxxxxxxxxxxxxxx> AuthorDate: Tue Sep 29 15:49:53 2015 +0800 Commit: Ian Campbell <ian.campbell@xxxxxxxxxx> CommitDate: Tue Sep 29 10:56:38 2015 +0100 tools/libxl: fix range check in main_psr_cat_cbm_set The 'end' should be inclusive. Signed-off-by: Chao Peng <chao.p.peng@xxxxxxxxxxxxxxx> Reviewed-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx> Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- tools/libxl/xl_cmdimpl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 265b78c..365798b 100644 --- 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); } -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |