lkml.org 
[lkml]   [1998]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectPPPIOCSMRU is no-operation?
Hi!

This is from ppp.c, ppp_ioctl(), and it does not look too correct to
me:

case PPPIOCSMRU:
/*
* Set the MRU value
*/
if (get_user(temp_i, (int *) param3))
break;
if (temp_i < PPP_MRU)
temp_i = PPP_MRU;
if (ppp->flags & SC_DEBUG)
printk(KERN_INFO
"ppp_ioctl: set mru to %x\n", temp_i);
error = 0;
break;

You see? temp_i is set to value get from userland, printed by
printk(), but forgot afterwards.

Pavel

--
I'm really pavel@atrey.karlin.mff.cuni.cz. Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

-
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:44    [W:0.033 / U:0.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site