linux-ppp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ppp_async kfree patch
@ 2007-08-14 18:23 Gilles Espinasse
  2007-08-15  7:00 ` James Cameron
  2007-08-24  2:24 ` James Cameron
  0 siblings, 2 replies; 3+ messages in thread
From: Gilles Espinasse @ 2007-08-14 18:23 UTC (permalink / raw)
  To: linux-ppp

It has been reported in this thread
https://sourceforge.net/tracker/index.php?funcÞtail&aid\x1678777&group_id@604&atidB8519

that a one line patch on ppp_async avoid crash and reboot

This happen with hight speed connection and usbserial using
http://www.junxion.com/opensource/linux_highspeed_usbserial.html patch

Here is the patch against 2.4.34 a few lines after  We have finished the
packet.
Code is the same on 2.6.22 and look not have been changed until 2.6.23.rc3

--- linux-2.4.34/drivers/net/ppp_async.c.old 2007-06-30 17:56:40.000000000
-0700
+++ linux-2.4.34/drivers/net/ppp_async.c 2007-06-30 17:57:07.000000000
-0700
@@ -624,7 +624,7 @@
  *buf++ = PPP_FLAG;
  ap->olim = buf;

- kfree_skb(ap->tpkt);
+ dev_kfree_skb_any(ap->tpkt);
  ap->tpkt = 0;
  return 1;
 }

Comment welcome.

Gilles


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

end of thread, other threads:[~2007-08-24  2:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-14 18:23 ppp_async kfree patch Gilles Espinasse
2007-08-15  7:00 ` James Cameron
2007-08-24  2:24 ` James Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).