]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs/squashfs: Fix index off by 1 for inode SQFS_LDIR_TYPE
authorGerard Koskamp <gerard.koskamp@nedap.com>
Fri, 30 Oct 2020 13:41:58 +0000 (13:41 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 19 Nov 2020 14:45:49 +0000 (09:45 -0500)
commitc49b0eb034710f08fc68cbfa2c23811e10667ad9
tree052881190a2dcfec2737034c572f04ecd1ee8af0
parente04072536efcbe504596ea980077eb63c52082b0
fs/squashfs: Fix index off by 1 for inode SQFS_LDIR_TYPE

I've created a squashfs file system with Yocto (it use squashfs-tools)
and u-boot command sqfsls give the error:'Error while searching inode:
unknown type.'
After some digging in the code I found that the index is off by 1.
This patch fix this issue and I can successful use the sqfsls command.
After search for the squashfs format I found a link talk about a
similar issue but this time in the documentation. The link is:
https://github.com/AgentD/squashfs-tools-ng/commit/e6588526838caece9529

Signed-off-by: Gerard Koskamp <gerard.koskamp@nedap.com>
Tested-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
fs/squashfs/sqfs_inode.c