uimage_close() is called on bootm cleanup, so do not close it
in the failure path in bootm_open_os_uimage().

Signed-off-by: Sascha Hauer <[email protected]>
---
 common/bootm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/common/bootm.c b/common/bootm.c
index 08125e7..affab24 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -208,7 +208,6 @@ static int bootm_open_os_uimage(struct image_data *data)
        if (data->os->header.ih_arch != IH_ARCH) {
                printf("Unsupported Architecture 0x%x\n",
                       data->os->header.ih_arch);
-               uimage_close(data->os);
                return -EINVAL;
        }
 
-- 
2.6.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to