Messages in this thread | | | Date | Tue, 08 Sep 1998 15:38:50 +0000 | From | Petko Manolov <> | Subject | Re: 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
| |