[PATCH 2/2] mkfs.ubifs: Store compr_size in correct endianness.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



compr_size has to be in LE16.

Signed-off-by: Richard Weinberger <richard@xxxxxx>
---
 ubifs-utils/mkfs.ubifs/fscrypt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ubifs-utils/mkfs.ubifs/fscrypt.c b/ubifs-utils/mkfs.ubifs/fscrypt.c
index 6d2b650d626d..118c11c5a4ca 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);
-- 
2.19.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux