Re: [Qemu-devel] [PATCH 2/3] numa: Reject duplicate node IDs

2014-06-26 Thread Hu Tao
On Thu, Jun 26, 2014 at 06:33:19PM -0300, Eduardo Habkost wrote: > The same nodeid shouldn't appear multiple times in the command-line. > > In addition to detecting command-line mistakes, this will fix a bug > where nb_numa_nodes may become larger than MAX_NODES (and cause > out-of-bounds access o

[Qemu-devel] [PATCH 2/3] numa: Reject duplicate node IDs

2014-06-26 Thread Eduardo Habkost
The same nodeid shouldn't appear multiple times in the command-line. In addition to detecting command-line mistakes, this will fix a bug where nb_numa_nodes may become larger than MAX_NODES (and cause out-of-bounds access on the numa_info array). Signed-off-by: Eduardo Habkost --- numa.c | 5 ++