mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-17 06:39:37 +02:00
fuse: fix memory leak in fuse_create_open
commit3002240d16
upstream. The memory of struct fuse_file is allocated but not freed when get_create_ext return error. Fixes:3e2b6fdbdc
("fuse: send security context of inode on file") Cc: stable@vger.kernel.org # v5.17 Signed-off-by: yangyun <yangyun50@huawei.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bfd55cd429
commit
f36df5cc86
|
@ -668,7 +668,7 @@ static int fuse_create_open(struct inode *dir, struct dentry *entry,
|
|||
|
||||
err = get_create_ext(&args, dir, entry, mode);
|
||||
if (err)
|
||||
goto out_put_forget_req;
|
||||
goto out_free_ff;
|
||||
|
||||
err = fuse_simple_request(fm, &args);
|
||||
free_ext_value(&args);
|
||||
|
|
Loading…
Reference in New Issue
Block a user