diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-10-17 17:01:47 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-19 02:39:43 -0400 |
commit | 8bae8bd6cb24eecad9fda3e125d36ab9c67d3fd7 (patch) | |
tree | 2cfbe13ebde2a8d771688a27e702554f1b2ea912 | |
parent | 4d97480b1806e883eb1c7889d4e7a87e936e06d9 (diff) | |
download | op-kernel-dev-8bae8bd6cb24eecad9fda3e125d36ab9c67d3fd7.zip op-kernel-dev-8bae8bd6cb24eecad9fda3e125d36ab9c67d3fd7.tar.gz |
pptp: fix skb leak in pptp_xmit()
In case we cant transmit skb, we must free it
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Dmitry Kozlov <xeb@mail.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/pptp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/pptp.c b/drivers/net/pptp.c index eae542a..9c0403d 100644 --- a/drivers/net/pptp.c +++ b/drivers/net/pptp.c @@ -285,8 +285,10 @@ static int pptp_xmit(struct ppp_channel *chan, struct sk_buff *skb) ip_send_check(iph); ip_local_out(skb); + return 1; tx_error: + kfree_skb(skb); return 1; } |