From patchwork Wed Nov 7 20:21:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Weinberger X-Patchwork-Id: 994481 X-Patchwork-Delegate: david.oberhollenzer@sigma-star.at Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=nod.at Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="oekOR18E"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="mlj6Aso5"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42qyWN1Sflz9s9h for ; Thu, 8 Nov 2018 07:22:07 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wtTg8fpNY1nfKLi2qyXT1XRUBIuV1fAZlCNqLacoNhw=; b=oekOR18Ete71UC a0KN7qYMi5GBQW65KLauupzulDiZ10TC5XUzEEWnMoqfhvtb2FSileehGGa5B7AjrSaT4nxPeW7Wy 3VmOwdvZd4d27J93vVDl2fTCJ1d5KTl0PDeydt+BQH5sFATMWXJL2nsTuej1gyV398OYOhxwDpbOQ 2O23tjr0jQAxSr35KKCISMsonviVVkUmiiqTvXV797gUn1TnjIbsPRmJNaLUxbg7iYf+NHi70EAgA RAkjKcvyUbzjI4FSuuP82S5jt61x3QVzt4dmQyA45vrgMRvyCHj6nmN1pu3FTTlKIPz1DfiiexqC4 jGppmVTezK+gKOJVYCYg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKUKt-0007tj-KQ; Wed, 07 Nov 2018 20:21:59 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKUKm-0007nb-Ur for linux-mtd@bombadil.infradead.org; Wed, 07 Nov 2018 20:21:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KirW2gNEzs7zSAaE7kvQiL7RrEgva57dICgZd1iuzOI=; b=mlj6Aso5d2JEauzlk05ThtRyDI H1wOWto+3glwnn7bkZErSfIU4gu2GZsBZWCCDbspzhdsAx5G/BB/RcxSqqS23A4P85UKjghhdK9TM E6NuSQtsRHB1yBWE7angnQaVO3/P01tCnzId/b34qs30y2umssSdGg8u4LMHDYc1qjpzvkfT4em12 5KYf/pZDgEy9Sj/WOX5EpBdGy/7TZNBdKxeOX5tpeLqcGmfN0JnbEZjrdO8DYY/lTwPtldKYsi6nc pBzSbnhWSzZEgbrvlDn01kFQRROdfm6umdlrdftOlWsK2LjDsH2bQcyB928kkI0DuZoEGemXwTEXj fMw1Dk+Q==; Received: from lilium.sigma-star.at ([109.75.188.150]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKUKj-0002Iu-Ms for linux-mtd@lists.infradead.org; Wed, 07 Nov 2018 20:21:50 +0000 Received: from localhost (localhost [127.0.0.1]) by lilium.sigma-star.at (Postfix) with ESMTP id D19FB180D912E; Wed, 7 Nov 2018 21:21:28 +0100 (CET) From: Richard Weinberger To: linux-mtd@lists.infradead.org Subject: [PATCH 2/2] mkfs.ubifs: Store compr_size in correct endianness. Date: Wed, 7 Nov 2018 21:21:08 +0100 Message-Id: <20181107202108.13734-2-richard@nod.at> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181107202108.13734-1-richard@nod.at> References: <20181107202108.13734-1-richard@nod.at> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181107_152149_848593_169E88E6 X-CRM114-Status: UNSURE ( 9.44 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Weinberger , hs@denx.de, david.oberhollenzer@sigma-star.at Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org compr_size has to be in LE16. Signed-off-by: Richard Weinberger Tested-by: Heiko Schocher --- 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);