mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
lib: decode_timing_property should return -NOENT when proprty is not found
Length may be unitialized when fdt_getprop fails. Signed-off-by: Ondřej Jirman <megous@megous.com>
This commit is contained in:
@@ -980,7 +980,7 @@ static int decode_timing_property(const void *blob, int node, const char *name,
|
||||
if (!prop) {
|
||||
debug("%s: could not find property %s\n",
|
||||
fdt_get_name(blob, node, NULL), name);
|
||||
return length;
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
if (length == sizeof(u32)) {
|
||||
|
Reference in New Issue
Block a user