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:
Justin Hibbits 2020-01-13 23:09:00 +00:00
parent 5a12815327
commit a80e3de39b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=356710

View File

@ -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;