Re: copy_to_user fails

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

 



In message <000a01c43063$dfe15a80$160aa8c0@dinesh>
   "copy_to_user fails"
   ""Dinesh" <dineshg@nodeinfotech.com>" wrote:

> What can be the reason for failure of copy_to_user() on Pentium 3 with 512 MB RAM?

Hello,

Did you use the following sequence?
I think you can check the return value of copy_to_user().

mm_segment_t oldfs;
oldfs = get_fs(); set_fs(KERNEL_DS);
copy_to_user();
set_fs(oldfs);

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