svn commit: r356710 - head/sys/powerpc/mpc85xx
Justin Hibbits
jhibbits at FreeBSD.org
Mon Jan 13 23:09:01 UTC 2020
Author: jhibbits
Date: Mon Jan 13 23:09:00 2020
New Revision: 356710
URL: https://svnweb.freebsd.org/changeset/base/356710
Log:
powerpc/mpc85xx: Partially revert r356640
The count block was correct before. r356640 caused a read past the end of
the tuple.
Modified:
head/sys/powerpc/mpc85xx/lbc.c
Modified: head/sys/powerpc/mpc85xx/lbc.c
==============================================================================
--- head/sys/powerpc/mpc85xx/lbc.c Mon Jan 13 22:36:29 2020 (r356709)
+++ head/sys/powerpc/mpc85xx/lbc.c Mon Jan 13 23:09:00 2020 (r356710)
@@ -397,7 +397,7 @@ fdt_lbc_reg_decode(phandle_t node, struct lbc_softc *s
}
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;
More information about the svn-src-all
mailing list