[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081030085725.GA15289@ff.dom.local>
Date: Thu, 30 Oct 2008 08:57:25 +0000
From: Jarek Poplawski <jarkao2@...il.com>
To: David Miller <davem@...emloft.net>, Jeff Garzik <jeff@...zik.org>
Cc: netdev@...r.kernel.org, Herbert Xu <herbert@...dor.apana.org.au>
Subject: [PATCH] pppoe: Add missing sock_put() in pppoe_rcv()
pppoe: Add missing sock_put() in pppoe_rcv()
Add missing sock_put() in pppoe_rcv() (introduced by
commit 392fdb0e35055b96faa9c1cd6ab537805337cdce).
Signed-off-by: Jarek Poplawski <jarkao2@...il.com>
---
[needed for stables 2.6.26 and later]
drivers/net/pppoe.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c
index fc6f4b8..c074276 100644
--- a/drivers/net/pppoe.c
+++ b/drivers/net/pppoe.c
@@ -403,8 +403,10 @@ static int pppoe_rcv(struct sk_buff *skb,
if (!po)
goto drop;
- if (pskb_trim_rcsum(skb, len))
+ if (pskb_trim_rcsum(skb, len)) {
+ sock_put(sk_pppox(po));
goto drop;
+ }
return sk_receive_skb(sk_pppox(po), skb, 0);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists