]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Initialize the ofw_bus_devinfo on the portals to prevent a crash.
authorJustin Hibbits <jhibbits@FreeBSD.org>
Sat, 22 Oct 2016 02:11:53 +0000 (02:11 +0000)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Sat, 22 Oct 2016 02:11:53 +0000 (02:11 +0000)
commit3413fe97706221447c6348d7e6558e7dea1d2a80
tree36e01fccb2f0677c8e86275e3d76629b3402f528
parentdc9b124d6668d984b8a012e21fef6a0fe585faef
Initialize the ofw_bus_devinfo on the portals to prevent a crash.

If the device tree doesn't contain a cpu-handle field in any bman-portal or
qman-portal, it will exit without setting up the devinfo, leaving it
uninitialized.  This will lead to attempts to free random memory, and ultimately
panic.
sys/dev/dpaa/bman_fdt.c
sys/dev/dpaa/qman_fdt.c