Re: ioctl problems when copying to user space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




>
>       if( ret = __generic_copy_to_user(arg_ptr, ts,
>                                        sizeof(time_stamp)))
>         {
>             printk("copy to user failed %d %d\n", ret,
>                     sizeof(time_stamp));
>             ret = -EFAULT;
>

Hmm. ts is not a pointer here. Damn.

Anton
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux