[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: copy_to_user fails
In message <000a01c43063$dfe15a80$160aa8c0@dinesh>
"copy_to_user fails"
""Dinesh" <dineshg@xxxxxxxxxxxxxxxx>" 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/