Re: WTF is HIDIOCGRDESC supposed to do (aside of being a roothole)?

2007-10-15 Thread Jiri Kosina
On Mon, 15 Oct 2007, Al Viro wrote: > This > + if (get_user(len, (int __user *)arg)) > + return -EFAULT; > + if (copy_to_user(*((__u8 **)(user_arg + > +

WTF is HIDIOCGRDESC supposed to do (aside of being a roothole)?

2007-10-14 Thread Al Viro
This + if (get_user(len, (int __user *)arg)) + return -EFAULT; + if (copy_to_user(*((__u8 **)(user_arg + + sizeof(__u32))), +