copy_from_user

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

 



I have a driver that uses an ioctl command to pass data from user space 
to the driver.  When the driver gets called, copy_from_user returns a 
value of 652...the size of the data struct that should be copied.  Upon 
additional checking,  the ioctl argument representing the pointer to the 
struct has the same value as the user space data....so the pointer is 
correct.  What would prevent the copy_from _user from doing its copy?

TIA
David

--
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