ppp_async kfree patch
It has been reported in this thread
https://sourceforge.net/tracker/index.php?func=detail&aid=1678777&group_id=40604&atid=428519
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
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Audio Users]
[Hams]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Photo]
[Yosemite Photos]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Linux Resources]
[Fedora Users]