functionfs, gadgetfs: use simple_recursive_removal()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 10 Mar 2025 04:45:20 +0000 (00:45 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 3 Jul 2025 02:36:52 +0000 (22:36 -0400)
commitbad356bb50e64170f8af14a00797a04313846aeb
treeedfd247fbe231f9fd1d3a5fcc56895bd070732a5
parent1664a91025f9a85c4592864a4001c28100a2fca5
functionfs, gadgetfs: use simple_recursive_removal()

usual mount leaks if something had been bound on top of disappearing
files there.

Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/usb/gadget/function/f_fs.c
drivers/usb/gadget/legacy/inode.c