Netdev List
 help / color / mirror / Atom feed
* [PATCH net-2.6.24] [L2TP] Fix lockup introduced by recent changes
@ 2007-09-18 21:44 James Chapman
  2007-09-18 21:51 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: James Chapman @ 2007-09-18 21:44 UTC (permalink / raw)
  To: netdev; +Cc: herbert, davem, mostrows, paulus

[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.

Signed-off-by: James Chapman <jchapman@katalix.com>

Index: net-2.6.24/drivers/net/pppol2tp.c
===================================================================
--- net-2.6.24.orig/drivers/net/pppol2tp.c
+++ 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;
 }
 
 /*****************************************************************************

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-19  1:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-18 21:44 [PATCH net-2.6.24] [L2TP] Fix lockup introduced by recent changes James Chapman
2007-09-18 21:51 ` David Miller
2007-09-19  1:37   ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox