Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8680e22f authored by Gerald Schaefer's avatar Gerald Schaefer Committed by Linus Torvalds
Browse files

[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: default avatarGerald Schaefer <geraldsc@de.ibm.com>
Acked-by: default avatarJames Morris <jmorris@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2894801d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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: