projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d97480
)
pptp: fix skb leak in pptp_xmit()
author
Eric Dumazet
<eric.dumazet@gmail.com>
Mon, 17 Oct 2011 17:01:47 +0000
(17:01 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 19 Oct 2011 06:39:43 +0000
(
02:39
-0400)
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>
drivers/net/pptp.c
patch
|
blob
|
history
diff --git
a/drivers/net/pptp.c
b/drivers/net/pptp.c
index
eae542a
..
9c0403d
100644
(file)
--- 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;
}