projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2894801
)
[PATCH] VFS: memory leak in do_kern_mount()
author
Gerald Schaefer
<geraldsc@de.ibm.com>
Wed, 22 Jun 2005 00:15:16 +0000
(17:15 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 01:46:22 +0000
(18:46 -0700)
There is a memory leak during mount when CONFIG_SECURITY is enabled and
mount options are specified.
Signed-off-by: Gerald Schaefer <geraldsc@de.ibm.com>
Acked-by: James Morris <jmorris@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/super.c
b/fs/super.c
index 3a1b8ca04ba601b37ffa5dadb8f9695272952e39..573bcc81bb82ae25caa4de0d0b779d562c87535b 100644
(file)
--- a/
fs/super.c
+++ b/
fs/super.c
@@
-835,6
+835,7
@@
do_kern_mount(const char *fstype, int flags, const char *name, void *data)
mnt->mnt_parent = mnt;
mnt->mnt_namespace = current->namespace;
up_write(&sb->s_umount);
+ free_secdata(secdata);
put_filesystem(type);
return mnt;
out_sb: