mirror of
https://github.com/raspberrypi/userland.git
synced 2025-12-06 04:49:12 +00:00
dtoverlay: Break on an error when parsing fragment overrides
A misformed string in an override, eg changeme = <0>, "-1,-2"; would stall the parsing as it didn't know how to handle ',' and kept trying to process it over and over. Abort on incorrect syntax.
This commit is contained in:
committed by
Dom Cobley
parent
97bc8180ad
commit
37030a77e4
@@ -1671,6 +1671,10 @@ int dtoverlay_override_one_target(int override_type,
|
||||
err = NON_FATAL(FDT_ERR_BADVALUE);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
err = NON_FATAL(FDT_ERR_BADVALUE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user