diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2018-12-22 01:55:48 -0800 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2018-12-31 09:42:41 +0800 |
commit | 9914c73261b198bf26df70cce8aa098f204cd763 (patch) | |
tree | b6c6bd0da07bfe59d4e474a7d1988c65ceec2af9 /cmd/cbfs.c | |
parent | 2fc7024d7ba370fe1fa416bfd67f1d44afb09aeb (diff) | |
download | u-boot-9914c73261b198bf26df70cce8aa098f204cd763.tar.gz |
fs: cbfs: remove wrong header validation
cbfs_fileheader.len indicates the content size of the file in the
cbfs, and it has nothing to do with cbfs_fileheader.offset which
is the starting address of the file in the cbfs.
Remove such check in file_cbfs_next_file(). Before this change
'cbfsinit' failed with 'Bad CBFS file'. After this change all cbfs
commands are working as expected.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
[bmeng: keep the necessary header sanity check]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/cbfs.c')
0 files changed, 0 insertions, 0 deletions