[svn-commits] sruffell: branch sruffell/zaptel-1.4-transcoder r4258 - /team/sruffell/zaptel...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon May 12 17:34:28 CDT 2008


Author: sruffell
Date: Mon May 12 17:34:28 2008
New Revision: 4258

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4258
Log:
Correctly drop packets transmitted from the upper layers.  This was a memory
leak and would also prevent the driver from being unloaded when the kernel was
trying to send out packets on the debug interface.

Modified:
    team/sruffell/zaptel-1.4-transcoder/kernel/wctc4xxp/wcdte_net.c

Modified: team/sruffell/zaptel-1.4-transcoder/kernel/wctc4xxp/wcdte_net.c
URL: http://svn.digium.com/view/zaptel/team/sruffell/zaptel-1.4-transcoder/kernel/wctc4xxp/wcdte_net.c?view=diff&rev=4258&r1=4257&r2=4258
==============================================================================
--- team/sruffell/zaptel-1.4-transcoder/kernel/wctc4xxp/wcdte_net.c (original)
+++ team/sruffell/zaptel-1.4-transcoder/kernel/wctc4xxp/wcdte_net.c Mon May 12 17:34:28 2008
@@ -79,7 +79,8 @@
 {
 	struct wcdte *wc = netdev->priv;
 	DTE_DEBUG(DTE_DEBUG_GENERAL, "%s\n", __FUNCTION__);
-	return 0;
+	dev_kfree_skb_any(skb);
+	return NETDEV_TX_OK;
 }
 
 static int wcdte_poll(struct net_device *netdev, int *budget)




More information about the svn-commits mailing list