提交 926631c2 编写于 作者: D Dan Carpenter 提交者: Jan Kara

ext4: memory leak on error in ext4_symlink()

We should release "sd" before returning.

Fixes: 0fa12ad1b285 ('ext4: Handle error from dquot_initialize()')
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NJan Kara <jack@suse.com>
上级 debeb297
...@@ -3084,7 +3084,7 @@ static int ext4_symlink(struct inode *dir, ...@@ -3084,7 +3084,7 @@ static int ext4_symlink(struct inode *dir,
err = dquot_initialize(dir); err = dquot_initialize(dir);
if (err) if (err)
return err; goto err_free_sd;
if ((disk_link.len > EXT4_N_BLOCKS * 4)) { if ((disk_link.len > EXT4_N_BLOCKS * 4)) {
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册