Messages in this thread | | | Date | Fri, 08 Jan 2010 16:10:44 -0800 | From | "H. Peter Anvin" <> | Subject | Re: strict copy_from_user checks issues? |
| |
On 01/08/2010 04:07 PM, Arnd Bergmann wrote: > > Also, the calling conventions require you to write slightly more when > you want to pass down an error value, e.g. > > return copy_to_user(uptr, &data, sizeof(data)) ? -EFAULT : 0; > > instead of > > return put_user(data, uptr); > > The latter form requires a macro instead of a function for the user copy, > but we now have that anyway because of the size check. >
Well... we already have the latter form?
-hpa
| |