Skip to content

Commit 7bed61a

Browse files
Zhihao Chengrichardweinberger
authored andcommitted
Revert "ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path"
This reverts commit 6379b44. Commit 1e02221 ("ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path") is applied again in commit 6379b44 ("ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path"), which changed ubifs_mknod (It won't become a real problem). Just revert it. Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent 354c179 commit 7bed61a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/ubifs/dir.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,8 +1133,6 @@ static int ubifs_mknod(struct mnt_idmap *idmap, struct inode *dir,
11331133
dir_ui->ui_size = dir->i_size;
11341134
mutex_unlock(&dir_ui->ui_mutex);
11351135
out_inode:
1136-
/* Free inode->i_link before inode is marked as bad. */
1137-
fscrypt_free_inode(inode);
11381136
make_bad_inode(inode);
11391137
iput(inode);
11401138
out_fname:

0 commit comments

Comments
 (0)