From: Chao Peng <chao.p.peng@linux.intel.com>
To: xen-devel@lists.xen.org
Cc: wei.liu2@citrix.com, Ian.Jackson@eu.citrix.com,
Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com
Subject: [PATCH for Xen 4.6 4/5] tools/libxl: fix range check in main_psr_cat_cbm_set
Date: Mon, 28 Sep 2015 19:54:52 +0800 [thread overview]
Message-ID: <1443441293-4287-5-git-send-email-chao.p.peng@linux.intel.com> (raw)
In-Reply-To: <1443441293-4287-1-git-send-email-chao.p.peng@linux.intel.com>
The 'end' should be inclusive.
Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
---
tools/libxl/xl_cmdimpl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index cec0d2c..045b70e 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -8525,7 +8525,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);
}
--
1.9.1
next prev parent reply other threads:[~2015-09-28 11:54 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-28 11:54 [PATCH for Xen 4.6 0/5] Several PSR fixes in libxl Chao Peng
2015-09-28 11:54 ` [PATCH for Xen 4.6 1/5] tools/libxl: introduce libxl_socket_bitmap_fill Chao Peng
2015-09-28 14:12 ` Wei Liu
2015-09-28 14:53 ` Dario Faggioli
2015-09-28 14:57 ` Wei Liu
2015-09-29 2:47 ` Chao Peng
2015-09-29 2:49 ` Chao Peng
2015-09-28 11:54 ` [PATCH for Xen 4.6 2/5] tools/libxl: fix socket display error for CMT Chao Peng
2015-09-28 14:13 ` Wei Liu
2015-09-28 15:06 ` Dario Faggioli
2015-09-28 15:36 ` Wei Liu
2015-09-29 2:53 ` Chao Peng
2015-09-28 11:54 ` [PATCH for Xen 4.6 3/5] tools/libxl: return socket id from libxl_psr_cat_get_l3_info Chao Peng
2015-09-28 14:13 ` Wei Liu
2015-09-28 15:35 ` Dario Faggioli
2015-09-28 15:46 ` Wei Liu
2015-09-29 3:05 ` Chao Peng
2015-09-29 7:19 ` Dario Faggioli
2015-09-28 11:54 ` Chao Peng [this message]
2015-09-28 14:14 ` [PATCH for Xen 4.6 4/5] tools/libxl: fix range check in main_psr_cat_cbm_set Wei Liu
2015-09-28 15:16 ` Dario Faggioli
2015-09-28 11:54 ` [PATCH for Xen 4.6 5/5] docs: make xl-psr.markdown more precise Chao Peng
2015-09-28 14:14 ` Wei Liu
2015-09-28 15:15 ` Dario Faggioli
2015-09-28 14:16 ` [PATCH for Xen 4.6 0/5] Several PSR fixes in libxl Wei Liu
2015-09-28 15:42 ` Dario Faggioli
2015-09-29 3:08 ` Chao Peng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1443441293-4287-5-git-send-email-chao.p.peng@linux.intel.com \
--to=chao.p.peng@linux.intel.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).