[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen stable-4.6] tools/libxl: fix range check in main_psr_cat_cbm_set
commit 45c6e842d3abbf265b417c59c4bb9044c2cdb2fc 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:59:53 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> (cherry picked from commit e364a9cecea0bf6c5b02bea674745cd37ea0ad5c) --- 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 a4a168b..9a2870e 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -8515,7 +8515,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#stable-4.6 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |