The check for phandle markers is fragile because the phandle marker must be after a type marker. The only guarantee for markers is they are in offset order. The order at a specific offset is undefined. Rework yaml_propval_int() to get the full marker list, so it can find a phandle marker no matter the ordering. Signed-off-by: Rob Herring <robh@kernel.org> Message-Id: <20210526010335.860787-2-robh@kernel.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
6.3 KiB
6.3 KiB