lkml.org 
[lkml]   [1998]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: unresolved symbol open
Vasili Goutas wrote:
>
> for (i; i <= count; i++) {
> *** to = get_user(from); ***
> to++;
> from++;
> }

Use copy_from_user instead. Something like this:
if ( copy_from_user(to, from, count) )
return -EFAULT;
It's much faster in this case. But your have to
work too, if there isn't other mess.

Petkan

--
Petko Manolov - petkan@varel.bg
http://www.varel.bg/~petkan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/faq.html

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.464 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site