Author: rmilecki
Date: 2016-05-09 17:33:42 +0200 (Mon, 09 May 2016)
New Revision: 49314
Modified:
trunk/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]>
Modified: trunk/package/system/mtd/src/seama.c
===================================================================
--- trunk/package/system/mtd/src/seama.c 2016-05-09 12:54:53 UTC (rev
49313)
+++ trunk/package/system/mtd/src/seama.c 2016-05-09 15:33:42 UTC (rev
49314)
@@ -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