From 3c0cf270c228dca8b5f7af3c4ac32cfeb91b508b Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 15 Jan 2016 08:48:17 +0100 Subject: bootm: Do not call uimage_close twice 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 --- common/bootm.c | 1 - 1 file changed, 1 deletion(-) (limited to 'common/bootm.c') diff --git a/common/bootm.c b/common/bootm.c index 08125e7bb0..affab24831 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; } -- cgit v1.2.3