diff options
Diffstat (limited to 'arch/mips/lib/bootm.c')
-rw-r--r-- | arch/mips/lib/bootm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c index 84f72f5ac0..6702372333 100644 --- a/arch/mips/lib/bootm.c +++ b/arch/mips/lib/bootm.c @@ -1,6 +1,7 @@ #include <boot.h> #include <common.h> #include <libfile.h> +#include <malloc.h> #include <init.h> #include <fs.h> #include <errno.h> @@ -17,6 +18,11 @@ static int do_bootm_barebox(struct image_data *data) if (!barebox) return -EINVAL; + if (data->dryrun) { + free(barebox); + return 0; + } + shutdown_barebox(); barebox(); |