Skip to content

Commit 3002240

Browse files
yangyun50Miklos Szeredi
authored andcommitted
fuse: fix memory leak in fuse_create_open
The memory of struct fuse_file is allocated but not freed when get_create_ext return error. Fixes: 3e2b6fd ("fuse: send security context of inode on file") Cc: [email protected] # v5.17 Signed-off-by: yangyun <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
1 parent 97f3087 commit 3002240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/fuse/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ static int fuse_create_open(struct inode *dir, struct dentry *entry,
670670

671671
err = get_create_ext(&args, dir, entry, mode);
672672
if (err)
673-
goto out_put_forget_req;
673+
goto out_free_ff;
674674

675675
err = fuse_simple_request(fm, &args);
676676
free_ext_value(&args);

0 commit comments

Comments
 (0)