Skip to content

Commit

Permalink
x86: have set_memory_array_{uc,wb} coalesce memtypes, fix
Browse files Browse the repository at this point in the history
Fix the start addr for free_memtype calls in the error path.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Acked-by: Rene Herman <rene.herman@keyaccess.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Venki Pallipadi authored and Ingo Molnar committed Aug 23, 2008
1 parent 5f310b6 commit 01de05a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 01de05a

Please sign in to comment.