summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-01-15 08:48:17 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-01-15 14:04:57 +0100
commitd378e4a45b1aac3f4f253e57566c54da5b347651 (patch)
tree1ddabdcafae83a20e1f6c624c5c6421c37bcab48
parent1857cc1e711d0d09a4cebd9b034b4a78379b6d46 (diff)
downloadbarebox-d378e4a45b1aac3f4f253e57566c54da5b347651.tar.gz
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 <s.hauer@pengutronix.de>
-rw-r--r--common/bootm.c1
1 files changed, 0 insertions, 1 deletions
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;
}