]> git.ipfire.org Git - people/ms/linux.git/commit - fs/namespace.c
fs: fix a struct path leak in path_umount
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Aug 2020 14:07:10 +0000 (16:07 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 7 Aug 2020 23:21:30 +0000 (19:21 -0400)
commit25ccd24ffd9119c452d711efa2604a7a0c35956e
tree411e1a18fe2bbf87e454d815e2eff696fbd6dfe9
parentf073531070d24bbb82cb2658952d949f4851024b
fs: fix a struct path leak in path_umount

Make sure we also put the dentry and vfsmnt in the illegal flags
and !may_umount cases.

Fixes: 41525f56e256 ("fs: refactor ksys_umount")
Reported-by: Vikas Kumar <vikas.kumar2@arm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c