diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-07-24 14:05:33 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.com> | 2015-07-27 14:30:45 +0200 |
commit | 926631c2012d22ab507ace95b3e5f5621f2c72b7 (patch) | |
tree | 593cd4eddb16e0526e14bf0a820be9dae6aeba60 /fs | |
parent | debeb29792f9bbb6b72ea2fc82088dc0fd9ec224 (diff) | |
download | blackbird-op-linux-926631c2012d22ab507ace95b3e5f5621f2c72b7.tar.gz blackbird-op-linux-926631c2012d22ab507ace95b3e5f5621f2c72b7.zip |
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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jan Kara <jack@suse.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index d3ff83742a33..9f61e7679a6d 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -3084,7 +3084,7 @@ static int ext4_symlink(struct inode *dir, err = dquot_initialize(dir); if (err) - return err; + goto err_free_sd; if ((disk_link.len > EXT4_N_BLOCKS * 4)) { /* |