diff options
author | Richard Genoud <richard.genoud@posteo.net> | 2020-11-03 12:10:59 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-11-18 13:48:55 -0500 |
commit | 05a50a6681340d048d1d8db74359877358b7674e (patch) | |
tree | b7f24befd7e6bbf7be07829f5cfb55cb02bba7b3 | |
parent | 1f8c926244913c2bc93b99f3f476cb7da69c4b94 (diff) | |
download | u-boot-05a50a6681340d048d1d8db74359877358b7674e.tar.gz |
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>
-rw-r--r-- | fs/fs.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 { |