]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand/fdt: Avoid bailout when dtbo has no fixups
authorkevans <kevans@FreeBSD.org>
Thu, 28 Dec 2017 21:12:27 +0000 (21:12 +0000)
committerkevans <kevans@FreeBSD.org>
Thu, 28 Dec 2017 21:12:27 +0000 (21:12 +0000)
commit7365160e6d51f8b6743f1529e5e687498836eff5
tree527b31061c3659bcc6c27914a1fa32d3237cc4ea
parentc1d99c579101f387fe04cfd397d8844b91257080
stand/fdt: Avoid bailout when dtbo has no fixups

In the case of a simple dtbo where fragment uses target-path and the overlay
contains no references, /__fixups__ will not be included by either our dtc
or dtc from ports, but the file still has valid fragments to be applied.

Additional testing found that /__symbols__ might also be omitted if it's
empty, which is not necessarily an error.

Reviewed by: gonzo, imp
Differential Revision: https://reviews.freebsd.org/D13663
stand/fdt/fdt_overlay.c