diff options
author | Vicente <vicencb@gmail.com> | 2012-10-09 00:55:17 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-10 09:29:58 +0200 |
commit | 8083e2e024714c42d47d8ebd82e97b17527ac759 (patch) | |
tree | 45716f919961d2028d5347b190e41832c5f8780c /arch/arm/lib/bootm.c | |
parent | 7764b1facaaa50b3e3114991ec78858efe5e8b8d (diff) | |
download | barebox-8083e2e024714c42d47d8ebd82e97b17527ac759.tar.gz barebox-8083e2e024714c42d47d8ebd82e97b17527ac759.tar.xz |
bootm: close open files
Signed-off-by: Vicente <vicencb@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/lib/bootm.c')
-rw-r--r-- | arch/arm/lib/bootm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index c5b76ea979..288c0b24a8 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -269,8 +269,9 @@ static int do_bootz_linux(struct image_data *data) ret = do_bootz_linux_fdt(fd, data); if (ret && ret != -ENXIO) - return ret; + goto err_out; + close(fd); return __do_bootm_linux(data, swap); err_out: @@ -431,6 +432,7 @@ static int do_bootm_aimage(struct image_data *data) reset_cpu(0); } + close(fd); return __do_bootm_linux(data, 0); err_out: |