[PPP]: Fix output buffer size in ppp_decompress_frame().
authorKonstantin Sharlaimov <konstantin.sharlaimov@gmail.com>
Tue, 21 Aug 2007 07:12:44 +0000 (00:12 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 22 Aug 2007 03:59:35 +0000 (20:59 -0700)
commit06c7af563d925d04961ce70cd9154fad8e2750c8
tree22dd9853858a98283c258814290c14316a0f17fc
parent2c20d72aaadd41fdf0a3b6cb8514c2f7b7d263e4
[PPP]: Fix output buffer size in ppp_decompress_frame().

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>
drivers/net/ppp_generic.c