projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1508cf8
)
mtd: seama: exit with error if Seama header wasn't found
author
Rafał Miłecki
<zajec5@gmail.com>
Mon, 9 May 2016 15:34:13 +0000
(15:34 +0000)
committer
Luka Perkov
<luka@openwrt.org>
Sun, 19 Jun 2016 17:56:13 +0000
(19:56 +0200)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r49314
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49315
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/system/mtd/src/seama.c
patch
|
blob
|
history
diff --git
a/package/system/mtd/src/seama.c
b/package/system/mtd/src/seama.c
index
e3c0e4d
..
ab24f03
100644
(file)
--- 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);