X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=linux%2Fppp.c;h=f0582e39bd35bf2405115990b951b63bec503669;hp=32d5fa604aa1a9c6ea5054c9f31094ca8413e05e;hb=19f8889c4e8a9db53619288b5c69f0f7ab4d4159;hpb=b07a2a0e2055cb2ba2b3addd5c50f2c9682a0777 diff --git a/linux/ppp.c b/linux/ppp.c index 32d5fa6..f0582e3 100644 --- a/linux/ppp.c +++ b/linux/ppp.c @@ -1,7 +1,7 @@ /* PPP for Linux - $Id: ppp.c,v 1.1 1994/05/27 00:55:25 paulus Exp $ + $Id: ppp.c,v 1.2 1994/05/30 02:42:55 paulus Exp $ */ /* @@ -377,9 +377,9 @@ ppp_changedmtu (struct ppp *ppp, int new_mtu, int new_mru) PRINTKN (2,(KERN_INFO "ppp: channel %s mtu = %d, mru = %d\n", dev->name, new_mtu, new_mru)); - new_xbuff = (unsigned char *) kmalloc(mtu + 4, GFP_KERNEL); - new_rbuff = (unsigned char *) kmalloc(mru + 4, GFP_KERNEL); - new_cbuff = (unsigned char *) kmalloc(mru + 4, GFP_KERNEL); + new_xbuff = (unsigned char *) kmalloc(mtu + 4, GFP_ATOMIC); + new_rbuff = (unsigned char *) kmalloc(mru + 4, GFP_ATOMIC); + new_cbuff = (unsigned char *) kmalloc(mru + 4, GFP_ATOMIC); /* * If the buffers failed to allocate then complain. */ @@ -558,11 +558,7 @@ ppp_open(struct tty_struct *tty) PRINTKN (2,(KERN_INFO "ppp: channel %s open\n", ppp->dev->name)); -#ifdef NEW_TTY_DRIVERS - return (0); -#else return (ppp->line); -#endif } /* called when ppp interface goes "up". here this just means we start