Commit f6eb2bcd authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: fix sign extension bug in NUMA code

From: Anton Blanchard <anton@samba.org>

The ppc64 NUMA code has a sign extension problem.  We would sign extend tmp1
when assigning it to start.  Fix this by making tmp1 unsigned.
parent 51bdd711
......@@ -107,7 +107,7 @@ static int __init parse_numa_properties(void)
}
for (; memory; memory = of_find_node_by_type(memory, "memory")) {
int *tmp1, *tmp2;
unsigned int *tmp1, *tmp2;
unsigned long i;
unsigned long start = 0;
unsigned long size = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment