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:
Dave Stevenson
2021-09-13 16:33:58 +01:00
committed by Dom Cobley
parent 97bc8180ad
commit 37030a77e4

View File

@@ -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;