lkml.org 
[lkml]   [1998]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] getsockname() always fails with EFAULT in 2.1.127pre7
> -------snip-------
> --- socket.c.old Thu Aug 27 19:33:09 1998
> +++ socket.c Fri Nov 6 19:32:35 1998
> @@ -170,7 +170,7 @@
> int err;
> int len;
>
> - if((err=get_user(len, ulen)))
> + if((err=get_user(len, uaddr)))
> return err;
> if(len>klen)
> len=klen;
> -------snip-------
>

The above patch does not compile properly (cringe). uaddr needs a cast
such as the following to compile properly.

+ if ((err=get_user(len, (char*)uaddr)))



-
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/

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