fs: only copy to userspace on success in listmount()
Avoid copying when we failed to, or didn't have any mounts to list. Fixes: cb54ef4f ("fs: don't copy to userspace under namespace semaphore") # mainline only Signed-off-by:Christian Brauner <brauner@kernel.org>
Showing
Please register or sign in to comment