u-boot/fs/jffs2
Wagner Popov dos Santos fc25ffe7d2 JFFS2: fix jffs2 summary datacrc status uninitialized
The function jffs2_1pass_read_inode() was discarding the summary
inodes and dirent because the value in datacrc flag wasn't
initialized in function jffs2_sum_process_sum_data().

This fix initializes the status of all summary records to indicate
that the CRC needs to be verified when they are loaded.

Before this fix, the behaviors produced by the undefined value of
datacrc was:
- Summary's registries were discarded when 'b->datacrc' is equal
  as 'CRC_BAD'.
- Summary's registries were not checked when b->datacrc differs of
  'CRC_BAD' and 'CRC_UNKNOWN'

So, almost all of the time the crc just isn't checked, and in some
cases the registries are discarded.

Signed-off-by: Wagner Popov dos Santos <wpopov@gmail.com>
2021-04-07 10:22:22 -04:00
..
compr_lzo.c
compr_rtime.c
compr_rubin.c
compr_zlib.c
jffs2_1pass.c JFFS2: fix jffs2 summary datacrc status uninitialized 2021-04-07 10:22:22 -04:00
jffs2_private.h JFFS2: Add useful fields into lists 2020-05-15 14:47:35 -04:00
Kconfig fs: Kconfig: Add a separate option for FS_JFFS2 2017-05-22 12:45:31 -04:00
LICENCE
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mergesort.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mini_inflate.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
summary.h