Messages in this thread | | | Date | Fri, 6 Nov 1998 21:02:25 -0700 (MST) | From | Ely Wilson <> | Subject | Re: [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/
| |