OSDN Git Service

[PATCH] PPP: fix crash using usb-serial on high speed devices
authorWilly Tarreau <w@1wt.eu>
Sun, 11 Nov 2007 15:47:50 +0000 (16:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 11 Nov 2007 17:44:05 +0000 (18:44 +0100)
Problem discussed here and reported and tracked by Gilles Espinasse :
  https://sourceforge.net/tracker/index.php?func=detail&aid=1678777&group_id=40604&atid=428519

Patch and description provided by David W Studeman :
"...This patch prevents the kernel from crashing during uploads with
some 3G devices. On my XU870, certain irc rooms would cause my machine
to crash and reboot. This also happened with the Nozomi drivers and
the Option GT Max when uploading torrents. Neither happen anymore with
the ppp_async patched driver."

On linux-ppp, James Cameron confirmed to Gilles that the patch fixes
the hangs problem for him :
  http://marc.info/?l=linux-ppp&m=118711617415737&w=2

drivers/net/ppp_async.c

index 836ca05..512433d 100644 (file)
@@ -624,7 +624,7 @@ ppp_async_encode(struct asyncppp *ap)
        *buf++ = PPP_FLAG;
        ap->olim = buf;
 
-       kfree_skb(ap->tpkt);
+       dev_kfree_skb_any(ap->tpkt);
        ap->tpkt = 0;
        return 1;
 }