| Index: utility/dump_fmap.c | 
| diff --git a/utility/dump_fmap.c b/utility/dump_fmap.c | 
| index bd7abac9481a40cc4b5d932493f1628fe8efdf93..ab2043c8bb26d0ce4a50fc80acc8f160a9e5faaf 100644 | 
| --- a/utility/dump_fmap.c | 
| +++ b/utility/dump_fmap.c | 
| @@ -57,7 +57,8 @@ static int dump_fmap(const void* ptr) { | 
| progname, buf, strerror(errno)); | 
| retval = 1; | 
| } else { | 
| -        if (1 != fwrite(base_of_rom + ah->area_offset, ah->area_size, 1, fp)) { | 
| +        if (ah->area_size && | 
| +            1 != fwrite(base_of_rom + ah->area_offset, ah->area_size, 1, fp)) { | 
| fprintf(stderr, "%s: can't write %s: %s\n", | 
| progname, buf, strerror(errno)); | 
| retval = 1; | 
|  |