diff options
author | rmilecki <rmilecki@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2016-05-09 15:33:42 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2016-05-09 18:53:22 +0200 |
commit | 6de401b1f8a1d094ae59baf65197fe9dad624195 (patch) | |
tree | fe5af33344a06e0c809d98f4e8aaa4a6615f53dd /package/system | |
parent | 06a3241c27c6550e3cba39c69035da8e984bf41a (diff) | |
download | mtk-20170518-6de401b1f8a1d094ae59baf65197fe9dad624195.zip mtk-20170518-6de401b1f8a1d094ae59baf65197fe9dad624195.tar.gz mtk-20170518-6de401b1f8a1d094ae59baf65197fe9dad624195.tar.bz2 |
mtd: seama: exit with error if Seama header wasn't found
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Diffstat (limited to 'package/system')
-rw-r--r-- | package/system/mtd/src/seama.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/system/mtd/src/seama.c b/package/system/mtd/src/seama.c index e3c0e4d..ab24f03 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); |