projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
debeb29
)
ext4: memory leak on error in ext4_symlink()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 24 Jul 2015 11:05:33 +0000
(14:05 +0300)
committer
Jan Kara
<jack@suse.com>
Mon, 27 Jul 2015 12:30:45 +0000
(14:30 +0200)
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>
fs/ext4/namei.c
patch
|
blob
|
history
diff --git
a/fs/ext4/namei.c
b/fs/ext4/namei.c
index d3ff83742a3378ee1742ec5ba65176f709876068..9f61e7679a6de53838a378a31f00bb5028b78877 100644
(file)
--- 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)) {
/*