From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cpwXf-0002qF-0s for barebox@lists.infradead.org; Mon, 20 Mar 2017 12:36:09 +0000 Received: by mail-lf0-x244.google.com with SMTP id v2so10138724lfi.2 for ; Mon, 20 Mar 2017 05:35:49 -0700 (PDT) From: Antony Pavlov Date: Mon, 20 Mar 2017 15:35:32 +0300 Message-Id: <20170320123532.24059-8-antonynpavlov@gmail.com> In-Reply-To: <20170320123532.24059-1-antonynpavlov@gmail.com> References: <20170320123532.24059-1-antonynpavlov@gmail.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 7/7] ext4: Use correct descriptor size when reading the block group descriptor To: barebox@lists.infradead.org VGhpcyBpcyBhbiBhZG9wdGlvbiBvZiB0aGUgVS1Cb290IGNvbW1pdAoKfCBjb21taXQgZjc5OGIx ZGRhMWM1ZGU4MThiODA2MTg5ZTUyM2QxYjc1ZGI3ZTcyZAp8IEF1dGhvcjogU3RlZmFuIEJyw7xu cyA8c3RlZmFuLmJydWVuc0Byd3RoLWFhY2hlbi5kZT4KfCBEYXRlOiAgIFNhdCBTZXAgMTcgMDI6 MTA6MDkgMjAxNiArMDIwMAp8CnwgICAgIGV4dDQ6IFVzZSBjb3JyZWN0IGRlc2NyaXB0b3Igc2l6 ZSB3aGVuIHJlYWRpbmcgdGhlIGJsb2NrIGdyb3VwIGRlc2NyaXB0b3IKfAp8ICAgICBUaGUgY29y cmVjdCBkZXNjcmlwdG9yIHNpemUgbXVzdCBiZSB1c2VkIHdoZW4gY2FsY3VsYXRpbmcgb2Zmc2V0 cywgYW5kCnwgICAgIGFsc28gdG8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