PPP: Fix PPP buffer sizing.
commit19de71f9fa023cb8a2b067a6db2f57ee4fad9f5d
authorKonstantin Sharlaimov <konstantin.sharlaimov@gmail.com>
Wed, 22 Aug 2007 04:20:25 +0000 (21 21:20 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 31 Aug 2007 06:01:51 +0000 (30 23:01 -0700)
treee3ef9a5f1000f5668686c09814d21eefa4ebc4e2
parent8385cffd22359ad561a173accefeb354bd606ce4
PPP: Fix PPP buffer sizing.

This patch addresses the issue with "osize too small" errors in mppe
encryption.  The patch fixes the issue with wrong output buffer size
being passed to ppp decompression routine.

--------------------
As pointed out by Suresh Mahalingam, the issue addressed by
ppp-fix-osize-too-small-errors-when-decoding patch is not fully resolved yet.
The size of allocated output buffer is correct, however it size passed to
ppp->rcomp->decompress in ppp_generic.c if wrong. The patch fixes that.
--------------------

Signed-off-by: Konstantin Sharlaimov <konstantin.sharlaimov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/ppp_generic.c