Messages in this thread | | | Date | Mon, 7 Jan 2013 09:01:24 -0800 | From | Tejun Heo <> | Subject | Re: [PATCH v2] mm: memblock: fix wrong memmove size in memblock_merge_regions() |
| |
On Mon, Jan 07, 2013 at 11:41:36AM +0800, Lin Feng wrote: > The memmove span covers from (next+1) to the end of the array, and the index > of next is (i+1), so the index of (next+1) is (i+2). So the size of remaining > array elements is (type->cnt - (i + 2)). > > Cc: Tejun Heo <tj@kernel.org> > Reviewed-by: Wanpeng Li <liwanp@linux.vnet.ibm.com> > Signed-off-by: Lin Feng <linfeng@cn.fujitsu.com>
Acked-by: Tejun Heo <tj@kernel.org>
Thanks!
-- tejun
| |