From 06c6857a6cb1cee467824c3218a3408005f99def Mon Sep 17 00:00:00 2001 From: Marcel Reichmuth Date: Thu, 31 Jan 2019 14:06:22 +0100 Subject: [PATCH] FIX: [uboot] additional patch for ext4 read errors with newer kernels BugzID: 55425 --- fs/ext4/ext4_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c index 97c6e3ffd9..bc5cda4292 100644 --- a/fs/ext4/ext4_common.c +++ b/fs/ext4/ext4_common.c @@ -1423,7 +1423,7 @@ static struct ext4_extent_header *ext4fs_get_extent_block { struct ext4_extent_idx *index; unsigned long long block; - struct ext_filesystem *fs = get_fs(); + int blksz = EXT2_BLOCK_SIZE(data); int i; while (1) { @@ -1447,7 +1447,7 @@ static struct ext4_extent_header *ext4fs_get_extent_block block = le32_to_cpu(index[i].ei_leaf_hi); block = (block << 32) + le32_to_cpu(index[i].ei_leaf_lo); - if (ext4fs_devread(block << log2_blksz, 0, fs->blksz, buf)) + if (ext4fs_devread(block << log2_blksz, 0, blksz, buf)) ext_block = (struct ext4_extent_header *)buf; else return 0;