powerpc/mpc85xx: Partially revert r356640
The count block was correct before. r356640 caused a read past the end of the tuple.
This commit is contained in:
parent
5a12815327
commit
a80e3de39b
@ -397,7 +397,7 @@ fdt_lbc_reg_decode(phandle_t node, struct lbc_softc *sc,
|
||||
}
|
||||
for (j = 0; j < size_cells; j++) {
|
||||
count <<= 32;
|
||||
count |= reg[addr_cells + j];
|
||||
count |= reg[addr_cells + j - 1];
|
||||
}
|
||||
reg += addr_cells - 1 + size_cells;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user