> +     if (!mountpoint)
> +             return -ENODEV;
> +
> +     ret = user_path_at(AT_FDCWD, mountpoint,
> +                          LOOKUP_FOLLOW | LOOKUP_AUTOMOUNT, &mountpath);

user_path_at handles an empty path, although you'll get EFAULT instead.
Do we care about the -ENODEV here?

Otherwise this looks good:

Reviewed-by: Christoph Hellwig <h...@lst.de>

Reply via email to