[lkml]   [2000]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] serial167.c: bugfixes and cleanups
Hi Arnaldo,

On Fri, 25 Aug 2000, Arnaldo Carvalho de Melo wrote:
> - copy_to_user(retinfo,&tmp,sizeof(*retinfo));
> + if (copy_to_user(retinfo,&tmp,sizeof(*retinfo)))
> + return -EFAULT;
> return 0;

I think Linus already suggested that you do this:

return copy_to_user(...) ? -EFAULT : 0;

it is compact and intuitive.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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