Zcomax device firmware tool endianness fix

SVN-Revision: 22885
This commit is contained in:
Michael Büsch 2010-09-04 05:40:56 +00:00
parent fcfe56924b
commit f40f0c001e
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ static int build_fw(void)
/* fill firmware header */
hdr = (struct fw_header *) p;
hdr->magic = HOST_TO_LE32(MAGIC_FIRMWARE);
hdr->length = HOST_TO_LE32(buflen) - sizeof(struct fw_header);
hdr->length = HOST_TO_LE32(buflen - sizeof(struct fw_header));
p += sizeof(struct fw_header);
/* fill kernel block header */