projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59be8e7
)
ext4: add missing kfree() on error return path in add_new_gdb()
author
Dan Carpenter
<
[email protected]
>
Sat, 30 Jul 2011 16:58:41 +0000
(12:58 -0400)
committer
Theodore Ts'o
<
[email protected]
>
Sat, 30 Jul 2011 16:58:41 +0000
(12:58 -0400)
We added some more error handling in
b40971426a
"ext4: add error
checking to calls to ext4_handle_dirty_metadata()". But we need to
call kfree() as well to avoid a memory leak.
Signed-off-by: Dan Carpenter <
[email protected]
>
Signed-off-by: "Theodore Ts'o" <
[email protected]
>
fs/ext4/resize.c
patch
|
blob
|
history
diff --git
a/fs/ext4/resize.c
b/fs/ext4/resize.c
index 6e3327d6ff1fbfbf2cb650d7ed7472103f7c152e..71085df97bbd8ce4c9a02356a2a60bfccdab632b 100644
(file)
--- a/
fs/ext4/resize.c
+++ b/
fs/ext4/resize.c
@@
-517,6
+517,7
@@
static int add_new_gdb(handle_t *handle, struct inode *inode,
return err;
exit_inode:
+ kfree(n_group_desc);
/* ext4_handle_release_buffer(handle, iloc.bh); */
brelse(iloc.bh);
exit_dindj: