Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dtoverlay: Don't mix non-fatal errors and offsets
FDT errors are small negative integers, and non-fatal errors are the positive versions of the same errors. This scheme only works if the non-fatal error values are never returned from a function where a positive integer has another interpretation. dtoverlay_get_target_offset broke this rule, leading eventually to an invalid DT and failure to boot. Fortunately, finding the offset for a fragment target is a non-destructive operation and therefore always non-fatal, so move the NON_FATAL classification to the callers - of which there are only three. See: raspberrypi/firmware#1686
- Loading branch information