Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234880
b: refs/heads/master
c: 2ca230b
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Tejun Heo committed Feb 17, 2011
1 parent e39006e commit c14c9d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e23bba604433a202cd301a976454a90ea6b783ef
refs/heads/master: 2ca230baeb7c61864cab9b53e37a3da28a2ca7e5
10 changes: 6 additions & 4 deletions trunk/arch/x86/mm/numa_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,13 @@ static void __init numa_reset_distance(void)
{
size_t size;

size = numa_distance_cnt * sizeof(numa_distance[0]);
memblock_x86_free_range(__pa(numa_distance),
__pa(numa_distance) + size);
if (numa_distance_cnt) {
size = numa_distance_cnt * sizeof(numa_distance[0]);
memblock_x86_free_range(__pa(numa_distance),
__pa(numa_distance) + size);
numa_distance_cnt = 0;
}
numa_distance = NULL;
numa_distance_cnt = 0;
}

/*
Expand Down

0 comments on commit c14c9d6

Please sign in to comment.