Commit 1b1e0c01 authored by Richard Genoud's avatar Richard Genoud Committed by Tom Rini
Browse files

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: default avatarRichard Genoud <richard.genoud@posteo.net>
Reviewed-by: default avatarJoao Marcos Costa <jmcosta944@gmail.com>
parent 4891c4e5
...@@ -287,6 +287,7 @@ static struct fstype_info fstypes[] = { ...@@ -287,6 +287,7 @@ static struct fstype_info fstypes[] = {
{ {
.fstype = FS_TYPE_SQUASHFS, .fstype = FS_TYPE_SQUASHFS,
.name = "squashfs", .name = "squashfs",
.null_dev_desc_ok = false,
.probe = sqfs_probe, .probe = sqfs_probe,
.opendir = sqfs_opendir, .opendir = sqfs_opendir,
.readdir = sqfs_readdir, .readdir = sqfs_readdir,
...@@ -295,6 +296,12 @@ static struct fstype_info fstypes[] = { ...@@ -295,6 +296,12 @@ static struct fstype_info fstypes[] = {
.size = sqfs_size, .size = sqfs_size,
.close = sqfs_close, .close = sqfs_close,
.closedir = sqfs_closedir, .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 #endif
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment