diff options
Diffstat (limited to 'drivers/net/ppp_async.c')
| -rw-r--r-- | drivers/net/ppp_async.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/drivers/net/ppp_async.c b/drivers/net/ppp_async.c index a1b82c9c67d2..53872d7d7382 100644 --- a/drivers/net/ppp_async.c +++ b/drivers/net/ppp_async.c @@ -340,7 +340,7 @@ ppp_asynctty_poll(struct tty_struct *tty, struct file *file, poll_table *wait)  }  /* May sleep, don't call from interrupt level or with interrupts disabled */ -static void +static unsigned int  ppp_asynctty_receive(struct tty_struct *tty, const unsigned char *buf,  		  char *cflags, int count)  { @@ -348,7 +348,7 @@ ppp_asynctty_receive(struct tty_struct *tty, const unsigned char *buf,  	unsigned long flags;  	if (!ap) -		return; +		return -ENODEV;  	spin_lock_irqsave(&ap->recv_lock, flags);  	ppp_async_input(ap, buf, cflags, count);  	spin_unlock_irqrestore(&ap->recv_lock, flags); @@ -356,6 +356,8 @@ ppp_asynctty_receive(struct tty_struct *tty, const unsigned char *buf,  		tasklet_schedule(&ap->tsk);  	ap_put(ap);  	tty_unthrottle(tty); + +	return count;  }  static void |