From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Jo=C3=A3o_Marcos_Costa?= Date: Tue, 3 Nov 2020 09:31:24 -0300 Subject: [PATCH v2 01/28] fs/squashfs: fix board hang-up when calling .exists() In-Reply-To: <20201103111126.23600-2-richard.genoud@posteo.net> References: <20201103111126.23600-1-richard.genoud@posteo.net> <20201103111126.23600-2-richard.genoud@posteo.net> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Reviewed-by Joao Marcos Costa Em ter., 3 de nov. de 2020 ?s 08:12, Richard Genoud < richard.genoud@posteo.net> escreveu: > 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 > --- > fs/fs.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/fs/fs.c b/fs/fs.c > index 29ad4d1a695..fb27c910d4f 100644 > --- a/fs/fs.c > +++ b/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 > { > -- Atenciosamente, Jo?o Marcos Costa www.linkedin.com/in/jmarcoscosta/ https://github.com/jmarcoscosta