From: Gerald Schaefer Date: Wed, 22 Jun 2005 00:15:16 +0000 (-0700) Subject: [PATCH] VFS: memory leak in do_kern_mount() X-Git-Tag: v2.6.13-rc4~130^2~202^2~126 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8680e22f296e75e5497edb660c59c6b4dcfbbd32;p=linux-2.6-omap-h63xx.git [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 Acked-by: James Morris Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/super.c b/fs/super.c index 3a1b8ca04ba..573bcc81bb8 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) mnt->mnt_parent = mnt; mnt->mnt_namespace = current->namespace; up_write(&sb->s_umount); + free_secdata(secdata); put_filesystem(type); return mnt; out_sb: