diff options
author | Ye Li <ye.li@nxp.com> | 2016-03-02 01:00:05 +0800 |
---|---|---|
committer | fang hui <hui.fang@nxp.com> | 2016-11-09 08:25:50 +0800 |
commit | 367dc19ed97e6c171eae22d193a976d488613e9f (patch) | |
tree | 6d944fc294ed70c639d690674674ccef8686a92c | |
parent | c70bfc95127fddaf287e7e4acfd7e46ef0167cb0 (diff) | |
download | u-boot-imx-367dc19ed97e6c171eae22d193a976d488613e9f.zip u-boot-imx-367dc19ed97e6c171eae22d193a976d488613e9f.tar.gz u-boot-imx-367dc19ed97e6c171eae22d193a976d488613e9f.tar.bz2 |
MLK-12483-2 common: Fix uninitialized return value in image_fdt
When using ft_system_setup, the return value fdt_ret is not assigned,
so the fdt_strerror(fdt_ret) uses a uninitialized value.
Signed-off-by: Ye Li <ye.li@nxp.com>
-rw-r--r-- | common/image-fdt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/image-fdt.c b/common/image-fdt.c index c306794..04de749 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -514,7 +514,8 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob, } } if (IMAGE_OF_SYSTEM_SETUP) { - if (ft_system_setup(blob, gd->bd)) { + fdt_ret = ft_system_setup(blob, gd->bd); + if (fdt_ret) { printf("ERROR: system-specific fdt fixup failed: %s\n", fdt_strerror(fdt_ret)); goto err; |