Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/bootwrapper: Use the child-bus #address-cells to decide which range entry to use

The correct #address-cells was still used for the actual translation,
so the impact is only a possibility of choosing the wrong range entry
or failing to find any match. Most common cases were not affected.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by

Scott Wood and committed by
Paul Mackerras
49e6e3f1 e14d7749

+1 -1
+1 -1
arch/powerpc/boot/devtree.c
··· 213 213 u32 range_addr[MAX_ADDR_CELLS]; 214 214 u32 range_size[MAX_ADDR_CELLS]; 215 215 216 - copy_val(range_addr, ranges + i, naddr); 216 + copy_val(range_addr, ranges + i, nregaddr); 217 217 copy_val(range_size, ranges + i + nregaddr + naddr, nsize); 218 218 219 219 if (compare_reg(reg, range_addr, range_size))