From: Richard Weinberger Date: Wed, 7 Nov 2018 20:21:08 +0000 (+0100) Subject: mkfs.ubifs: Store compr_size in correct endianness. X-Git-Tag: v2.1.0~6 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a20cdd234def1d7b400d76e81cad45b82e0c6215;p=mtd-utils.git mkfs.ubifs: Store compr_size in correct endianness. compr_size has to be in LE16. Signed-off-by: Richard Weinberger Tested-by: Heiko Schocher Signed-off-by: David Oberhollenzer --- 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);