Skip to contentSkip to conversation

Fix lockup introduced by recent changes

PATCH In review James Chapman 3 participants 3 messages Sep 18, 2007 – Sep 19, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix lockup introduced by recent changes

[L2TP] Fix double skb free problem introduced by recent changes

This patch is to be applied on top of Herbert's recent patch set:
"[PPP 3/3] L2TP: Fix skb handling in pppol2tp_xmit"

It fixes a double kfree_skb() issue introduced by that patch. Also return 0 on error, allowing PPP to requeue the skb.

drivers/net/pppol2tp.c +3 -4
Index: net-2.6.24/drivers/net/pppol2tp.c
===================================================================
@@ -1066,11 +1066,10 @@ static int pppol2tp_xmit(struct ppp_chan
 		session->stats.tx_errors++;
 	}
 
-	/* Free the original skb */
-abort:
-	kfree_skb(skb);
-
 	return 1;
+
+abort:
+	return 0;
 }
 
 /*****************************************************************************
maintainer
#1 lore raw

From: James Chapman <[email protected]>
Date: Tue, 18 Sep 2007 22:44:33 +0100

Quoted 9 lines

[L2TP] Fix double skb free problem introduced by recent changes

This patch is to be applied on top of Herbert's recent patch set:
"[PPP 3/3] L2TP: Fix skb handling in pppol2tp_xmit"

It fixes a double kfree_skb() issue introduced by that patch. Also return 0 on error, allowing PPP to requeue the skb.

Thanks James. I've applied this to net-2.6

Herbert, please take a quick look, thanks.

#2 lore raw
Quoted 2 lines · David Miller

Herbert, please take a quick look, thanks.

Yep it looks good. I should've read my emails from the bottom up :)

Cheers,

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt