mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-08 10:25:20 +02:00
Revert "ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path"
commit7bed61a1cf
upstream. This reverts commit6379b44cdc
. Commit1e022216dc
("ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path") is applied again in commit6379b44cdc
("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e0aba0c6d5
commit
3faea7810e
|
@ -1126,8 +1126,6 @@ out_cancel:
|
|||
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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user