diff options
author | Richard Weinberger <richard@nod.at> | 2018-11-07 21:21:08 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2018-11-09 14:24:59 +0100 |
commit | a20cdd234def1d7b400d76e81cad45b82e0c6215 (patch) | |
tree | dc3362d91a8e3e79d1a276aa5903377a7c648482 | |
parent | 9ddc6f08c9ecd0a6328ffbef3c444e0a00b2768a (diff) |
mkfs.ubifs: Store compr_size in correct endianness.
compr_size has to be in LE16.
Signed-off-by: Richard Weinberger <richard@nod.at>
Tested-by: Heiko Schocher <hsdenx.de>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r-- | ubifs-utils/mkfs.ubifs/fscrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ubifs-utils/mkfs.ubifs/fscrypt.c b/ubifs-utils/mkfs.ubifs/fscrypt.c index 6d2b650..118c11c 100644 --- a/ubifs-utils/mkfs.ubifs/fscrypt.c +++ b/ubifs-utils/mkfs.ubifs/fscrypt.c @@ -125,7 +125,7 @@ int encrypt_data_node(struct fscrypt_context *fctx, unsigned int block_no, void *inbuf, *outbuf, *crypt_key; size_t ret, pad_len = round_up(length, FS_CRYPTO_BLOCK_SIZE); - dn->compr_size = length; + dn->compr_size = cpu_to_le16(length); inbuf = xzalloc(pad_len); outbuf = xzalloc(pad_len); |