Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Gerald Schaefer and committed by
Linus Torvalds
8680e22f 2894801d

+1
+1
fs/super.c
··· 835 835 mnt->mnt_parent = mnt; 836 836 mnt->mnt_namespace = current->namespace; 837 837 up_write(&sb->s_umount); 838 + free_secdata(secdata); 838 839 put_filesystem(type); 839 840 return mnt; 840 841 out_sb: