diff options
Diffstat (limited to 'drivers/net/ppp')
| -rw-r--r-- | drivers/net/ppp/ppp_async.c | 3 | ||||
| -rw-r--r-- | drivers/net/ppp/ppp_generic.c | 2 | ||||
| -rw-r--r-- | drivers/net/ppp/ppp_synctty.c | 3 | ||||
| -rw-r--r-- | drivers/net/ppp/pppoe.c | 4 | 
4 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/ppp/ppp_async.c b/drivers/net/ppp/ppp_async.c index f4429b93a9c8..15a179631903 100644 --- a/drivers/net/ppp/ppp_async.c +++ b/drivers/net/ppp/ppp_async.c @@ -281,8 +281,7 @@ ppp_asynctty_write(struct tty_struct *tty, struct file *file,   */  static int -ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file, -		   unsigned int cmd, unsigned long arg) +ppp_asynctty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)  {  	struct asyncppp *ap = ap_get(tty);  	int err, val; diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c index 4a365f15533e..9206c660a72e 100644 --- a/drivers/net/ppp/ppp_generic.c +++ b/drivers/net/ppp/ppp_generic.c @@ -2968,7 +2968,7 @@ ppp_unregister_channel(struct ppp_channel *chan)  	chan->ppp = NULL;  	/* -	 * This ensures that we have returned from any calls into the +	 * This ensures that we have returned from any calls into  	 * the channel's start_xmit or ioctl routine before we proceed.  	 */  	down_write(&pch->chan_sem); diff --git a/drivers/net/ppp/ppp_synctty.c b/drivers/net/ppp/ppp_synctty.c index b3a71b409a80..18283b7b94bc 100644 --- a/drivers/net/ppp/ppp_synctty.c +++ b/drivers/net/ppp/ppp_synctty.c @@ -274,8 +274,7 @@ ppp_sync_write(struct tty_struct *tty, struct file *file,  }  static int -ppp_synctty_ioctl(struct tty_struct *tty, struct file *file, -		  unsigned int cmd, unsigned long arg) +ppp_synctty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)  {  	struct syncppp *ap = sp_get(tty);  	int __user *p = (int __user *)arg; diff --git a/drivers/net/ppp/pppoe.c b/drivers/net/ppp/pppoe.c index 3619520340b7..ce2cbb5903d7 100644 --- a/drivers/net/ppp/pppoe.c +++ b/drivers/net/ppp/pppoe.c @@ -988,6 +988,7 @@ static int pppoe_fill_forward_path(struct net_device_path_ctx *ctx,  	path->encap.proto = htons(ETH_P_PPP_SES);  	path->encap.id = be16_to_cpu(po->num);  	memcpy(path->encap.h_dest, po->pppoe_pa.remote, ETH_ALEN); +	memcpy(ctx->daddr, po->pppoe_pa.remote, ETH_ALEN);  	path->dev = ctx->dev;  	ctx->dev = dev; @@ -1011,8 +1012,7 @@ static int pppoe_recvmsg(struct socket *sock, struct msghdr *m,  		goto end;  	} -	skb = skb_recv_datagram(sk, flags & ~MSG_DONTWAIT, -				flags & MSG_DONTWAIT, &error); +	skb = skb_recv_datagram(sk, flags, &error);  	if (error < 0)  		goto end;  | 
