Hello Evgeniy,

> +asmlinkage long sys_netchannel_control(void __user *arg)
[...]
> +     if (copy_from_user(&ctl, arg, sizeof(struct unetchannel_control)))
> +             return -ERESTARTSYS;
                        ^^^^^^^^^^^
[...]
> +     if (copy_to_user(arg, &ctl, sizeof(struct unetchannel_control)))
> +             return -ERESTARTSYS;
                        ^^^^^^^^^^^

I think this should be -EFAULT instead of -ERESTARTSYS, right?

-- 
Mit freundlichen Grüßen / Best Regards

Christian Borntraeger
Linux Software Engineer zSeries Linux & Virtualization



-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to