提交 01de05af 编写于 作者: V Venki Pallipadi 提交者: Ingo Molnar

x86: have set_memory_array_{uc,wb} coalesce memtypes, fix

Fix the start addr for free_memtype calls in the error path.
Signed-off-by: NVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Acked-by: NRene Herman <rene.herman@keyaccess.nl>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 5f310b63
......@@ -967,7 +967,7 @@ int set_memory_array_uc(unsigned long *addr, int addrinarray)
if (tmp == start)
break;
for (end = start + PAGE_SIZE; i < addrinarray - 1; end += PAGE_SIZE) {
for (end = tmp + PAGE_SIZE; i < addrinarray - 1; end += PAGE_SIZE) {
if (end != __pa(addr[i + 1]))
break;
i++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册