aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdt
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2019-02-27 04:19:29 +0000
committerIan Lepore <ian@FreeBSD.org>2019-02-27 04:19:29 +0000
commit85f55a2a97a0e7335870697397b6023a12521a78 (patch)
tree16d03d7063585f4a15d86dd9e3738590e8fc0ca0 /sys/dev/fdt
parentdb58d718e97acdebc5a54fe2e0cfc1fabb5353fd (diff)
Notes
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r--sys/dev/fdt/fdt_slicer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/fdt/fdt_slicer.c b/sys/dev/fdt/fdt_slicer.c
index 03bc6803fab78..61ae3e5e92761 100644
--- a/sys/dev/fdt/fdt_slicer.c
+++ b/sys/dev/fdt/fdt_slicer.c
@@ -73,6 +73,10 @@ fill_slices(device_t dev, const char *provider __unused,
node = ofw_bus_get_node(dev);
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
+ /* Nodes with a compatible property are not slices. */
+ if (OF_hasprop(child, "compatible"))
+ continue;
+
if (i == FLASH_SLICES_MAX_NUM) {
debugf("not enough buffer for slice i=%d\n", i);
break;