From: rmilecki Date: Mon, 9 May 2016 15:33:42 +0000 (+0000) Subject: mtd: seama: exit with error if Seama header wasn't found X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6de401b1f8a1d094ae59baf65197fe9dad624195;p=openwrt%2Fstaging%2Fdangole.git mtd: seama: exit with error if Seama header wasn't found Signed-off-by: Rafał Miłecki --- diff --git a/package/system/mtd/src/seama.c b/package/system/mtd/src/seama.c index e3c0e4d51e..ab24f03663 100644 --- a/package/system/mtd/src/seama.c +++ b/package/system/mtd/src/seama.c @@ -148,7 +148,7 @@ mtd_fixseama(const char *mtd, size_t offset) shdr = (struct seama_entity_header *)(first_block + offset); if (shdr->magic != htonl(SEAMA_MAGIC)) { fprintf(stderr, "No SEAMA header found\n"); - return -1; + exit(1); } else if (!ntohl(shdr->size)) { fprintf(stderr, "Seama entity with empty image\n"); exit(1);