From: megous at megous.com Date: Sat, 9 Feb 2019 14:39:56 +0100 Subject: [U-Boot] [PATCH 3/4] lib: decode_timing_property should return -NOENT when proprty is not found In-Reply-To: <20190209133957.12713-1-megous@megous.com> References: <20190209133957.12713-1-megous@megous.com> Message-ID: <20190209133957.12713-4-megous@megous.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de From: Ondrej Jirman Length may be unitialized when fdt_getprop fails. Signed-off-by: Ond=C5=99ej Jirman --- lib/fdtdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 18663ce6bd..3510de78e1 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -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; } =20 if (length =3D=3D sizeof(u32)) { --=20 2.20.1