kernel: Fix topology node count being decreased twice per node

This commit is contained in:
Pawel Dziepak 2013-12-19 20:24:34 +01:00
parent e3d001ff02
commit 3add52e8ba

View File

@ -574,7 +574,7 @@ generate_topology_array(cpu_topology_node_info* topology,
count--;
topology++;
for (int32 i = 0; i < node->children_count && count > 0; i++, count--)
for (int32 i = 0; i < node->children_count && count > 0; i++)
topology = generate_topology_array(topology, node->children[i], count);
return topology;
}