mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-17 12:41:32 +00:00
fs/squashfs: fix board hang-up when calling .exists()
add missing squashfs function to prevent dangling or null pointers. For exemple, when calling test [ -e somefile ], squashfs.exists may be called. Signed-off-by: Richard Genoud <richard.genoud@posteo.net> Reviewed-by: Joao Marcos Costa <jmcosta944@gmail.com>
This commit is contained in:
parent
4891c4e595
commit
1b1e0c0195
1 changed files with 7 additions and 0 deletions
7
fs/fs.c
7
fs/fs.c
|
@ -287,6 +287,7 @@ static struct fstype_info fstypes[] = {
|
|||
{
|
||||
.fstype = FS_TYPE_SQUASHFS,
|
||||
.name = "squashfs",
|
||||
.null_dev_desc_ok = false,
|
||||
.probe = sqfs_probe,
|
||||
.opendir = sqfs_opendir,
|
||||
.readdir = sqfs_readdir,
|
||||
|
@ -295,6 +296,12 @@ static struct fstype_info fstypes[] = {
|
|||
.size = sqfs_size,
|
||||
.close = sqfs_close,
|
||||
.closedir = sqfs_closedir,
|
||||
.exists = fs_exists_unsupported,
|
||||
.uuid = fs_uuid_unsupported,
|
||||
.write = fs_write_unsupported,
|
||||
.ln = fs_ln_unsupported,
|
||||
.unlink = fs_unlink_unsupported,
|
||||
.mkdir = fs_mkdir_unsupported,
|
||||
},
|
||||
#endif
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue