summaryrefslogtreecommitdiff
path: root/drivers/reset/reset-uclass.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2021-04-17 20:52:13 +0800
committerStefan Roese <sr@denx.de>2021-04-28 10:05:13 +0200
commit6b4880e63fd5c0f4f114ef7c89fcf55c97bade53 (patch)
tree4797c10679ee67a4852054642c3f77e109240d5d /drivers/reset/reset-uclass.c
parent2e1af1e3e765d53593ee54d1487cd51a7226ee30 (diff)
fs: btrfs: fix the false alert of decompression failure
There are some cases where decompressed sectors can have padding zeros. In kernel code, we have lines to address such situation: /* * btrfs_getblock is doing a zero on the tail of the page too, * but this will cover anything missing from the decompressed * data. */ if (bytes < destlen) memset(kaddr+bytes, 0, destlen-bytes); kunmap_local(kaddr); But not in U-boot code, thus we have some reports of U-boot failed to read compressed files in btrfs. Fix it by doing the same thing of the kernel, for both inline and regular compressed extents. Reported-by: Matwey Kornilov <matwey.kornilov@gmail.com> Link: https://bugzilla.suse.com/show_bug.cgi?id=1183717 Fixes: a26a6bedafcf ("fs: btrfs: Introduce btrfs_read_extent_inline() and btrfs_read_extent_reg()") Signed-off-by: Qu Wenruo <wqu@suse.com>
Diffstat (limited to 'drivers/reset/reset-uclass.c')
0 files changed, 0 insertions, 0 deletions