]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0afe0400a21f56f24cc96b608986dccfd474a88f
tree411e1a18fe2bbf87e454d815e2eff696fbd6dfe9
parentd72d220f216f5523a96f973308446d890a9ead87
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: c14f04db66ca ("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