Commit 7bed61a1 authored by Zhihao Cheng's avatar Zhihao Cheng Committed by Richard Weinberger
Browse files

Revert "ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path"



This reverts commit 6379b44c. Commit
1e022216 ("ubifs: ubifs_symlink: Fix memleak of inode->i_link in
error path") is applied again in commit 6379b44c ("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: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 354c1796
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1133,8 +1133,6 @@ static int ubifs_mknod(struct mnt_idmap *idmap, struct inode *dir,
	dir_ui->ui_size = dir->i_size;
	mutex_unlock(&dir_ui->ui_mutex);
out_inode:
	/* Free inode->i_link before inode is marked as bad. */
	fscrypt_free_inode(inode);
	make_bad_inode(inode);
	iput(inode);
out_fname: