aboutsummaryrefslogtreecommitdiffstats
path: root/fs/super.c
diff options
context:
space:
mode:
authorGerald Schaefer <geraldsc@de.ibm.com>2005-06-21 20:15:16 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-21 21:46:22 -0400
commit8680e22f296e75e5497edb660c59c6b4dcfbbd32 (patch)
treef86483aa60a21a9396a44249cdb7c5a24e512858 /fs/super.c
parent2894801db1cea527885f7a8679e5a88fb7377d9c (diff)
[PATCH] VFS: memory leak in do_kern_mount()
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>
Diffstat (limited to 'fs/super.c')
-rw-r--r--fs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/super.c b/fs/super.c
index 3a1b8ca04ba6..573bcc81bb82 100644
--- 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)
835 mnt->mnt_parent = mnt; 835 mnt->mnt_parent = mnt;
836 mnt->mnt_namespace = current->namespace; 836 mnt->mnt_namespace = current->namespace;
837 up_write(&sb->s_umount); 837 up_write(&sb->s_umount);
838 free_secdata(secdata);
838 put_filesystem(type); 839 put_filesystem(type);
839 return mnt; 840 return mnt;
840out_sb: 841out_sb: