Author: rmilecki
Date: 2016-05-09 17:34:13 +0200 (Mon, 09 May 2016)
New Revision: 49315

Modified:
   branches/chaos_calmer/package/system/mtd/src/seama.c
Log:
mtd: seama: exit with error if Seama header wasn't found

Signed-off-by: Rafa{U+0142} Mi{U+0142}ecki <[email protected]>

Backport of r49314

Modified: branches/chaos_calmer/package/system/mtd/src/seama.c
===================================================================
--- branches/chaos_calmer/package/system/mtd/src/seama.c        2016-05-09 
15:33:42 UTC (rev 49314)
+++ branches/chaos_calmer/package/system/mtd/src/seama.c        2016-05-09 
15:34:13 UTC (rev 49315)
@@ -148,7 +148,7 @@
        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);
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to