[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v2 4/9] hw/core/loader-fit: fix freeing errp in fit_load_fdt
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[RFC v2 4/9] hw/core/loader-fit: fix freeing errp in fit_load_fdt |
Date: |
Mon, 23 Sep 2019 19:12:26 +0300 |
fit_load_fdt forget to zero errp. Fix it.
Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
---
hw/core/loader-fit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/core/loader-fit.c b/hw/core/loader-fit.c
index 953b16bc82..fe5bcc6700 100644
--- a/hw/core/loader-fit.c
+++ b/hw/core/loader-fit.c
@@ -200,7 +200,7 @@ static int fit_load_fdt(const struct fit_loader *ldr, const
void *itb,
err = fit_image_addr(itb, img_off, "load", &load_addr, errp);
if (err == -ENOENT) {
load_addr = ROUND_UP(kernel_end, 64 * KiB) + (10 * MiB);
- error_free(*errp);
+ error_free_errp(errp);
} else if (err) {
error_prepend(errp, "unable to read FDT load address from FIT: ");
ret = err;
--
2.21.0
- [RFC v2 1/9] error: auto propagated local_err, (continued)
- [RFC v2 1/9] error: auto propagated local_err, Vladimir Sementsov-Ogievskiy, 2019/09/23
- [RFC v2 3/9] errp: rename errp to errp_in where it is IN-argument, Vladimir Sementsov-Ogievskiy, 2019/09/23
- [RFC v2 9/9] fix-compilation: includes, Vladimir Sementsov-Ogievskiy, 2019/09/23
- [RFC v2 8/9] fix-compilation: empty goto, Vladimir Sementsov-Ogievskiy, 2019/09/23
- [RFC v2 6/9] scripts: add coccinelle script to use auto propagated errp, Vladimir Sementsov-Ogievskiy, 2019/09/23
- [RFC v2 4/9] hw/core/loader-fit: fix freeing errp in fit_load_fdt,
Vladimir Sementsov-Ogievskiy <=
- Re: [RFC v2 0/9] error: auto propagated local_err, Eric Blake, 2019/09/23
- Re: [RFC v2 0/9] error: auto propagated local_err, Vladimir Sementsov-Ogievskiy, 2019/09/24
- Re: [RFC v2 0/9] error: auto propagated local_err, Eric Blake, 2019/09/24
- Re: [RFC v2 0/9] error: auto propagated local_err, Vladimir Sementsov-Ogievskiy, 2019/09/24
- Re: [RFC v2 0/9] error: auto propagated local_err, Vladimir Sementsov-Ogievskiy, 2019/09/24
- Re: [RFC v2 0/9] error: auto propagated local_err, Vladimir Sementsov-Ogievskiy, 2019/09/24
- Re: [RFC v2 0/9] error: auto propagated local_err, Vladimir Sementsov-Ogievskiy, 2019/09/24