1
0
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:
Ondrej Jirman
2018-07-02 08:18:04 +02:00
parent 882e22bf9c
commit 2fda5ece3c

View File

@@ -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)) {