+++ /dev/null
-From 3002240d16494d798add0575e8ba1f284258ab34 Mon Sep 17 00:00:00 2001
-From: yangyun <yangyun50@huawei.com>
-Date: Fri, 23 Aug 2024 16:51:46 +0800
-Subject: fuse: fix memory leak in fuse_create_open
-
-From: yangyun <yangyun50@huawei.com>
-
-commit 3002240d16494d798add0575e8ba1f284258ab34 upstream.
-
-The memory of struct fuse_file is allocated but not freed
-when get_create_ext return error.
-
-Fixes: 3e2b6fdbdc9a ("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>
----
- fs/fuse/dir.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
---- a/fs/fuse/dir.c
-+++ b/fs/fuse/dir.c
-@@ -741,7 +741,7 @@ static int create_new_entry(struct fuse_
- err = fuse_simple_request(fm, args);
- kfree(security_ctx);
- if (err)
-- goto out_put_forget_req;
-+ goto out_free_ff;
-
- err = -EIO;
- if (invalid_nodeid(outarg.nodeid) || fuse_invalid_attr(&outarg.attr))
mmc-cqhci-fix-checking-of-cqhci_halt-state.patch
fuse-update-stats-for-pages-in-dropped-aux-writeback-list.patch
fuse-use-unsigned-type-for-getxattr-listxattr-size-truncation.patch
-fuse-fix-memory-leak-in-fuse_create_open.patch