[dahdi-commits] jbenden: branch linux/jbenden/tdmoe-mf r7916 - /linux/team/jbenden/tdmoe-mf/d...

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Fri Jan 15 10:19:56 CST 2010


Author: jbenden
Date: Fri Jan 15 10:19:55 2010
New Revision: 7916

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7916
Log:
Check for dev again, prior to xmit; just in case the device disappeared inbetween the start of the xmit and the queue of the outgoing frame.

Modified:
    linux/team/jbenden/tdmoe-mf/drivers/dahdi/dahdi_dynamic_ethmf.c

Modified: linux/team/jbenden/tdmoe-mf/drivers/dahdi/dahdi_dynamic_ethmf.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/jbenden/tdmoe-mf/drivers/dahdi/dahdi_dynamic_ethmf.c?view=diff&rev=7916&r1=7915&r2=7916
==============================================================================
--- linux/team/jbenden/tdmoe-mf/drivers/dahdi/dahdi_dynamic_ethmf.c (original)
+++ linux/team/jbenden/tdmoe-mf/drivers/dahdi/dahdi_dynamic_ethmf.c Fri Jan 15 10:19:55 2010
@@ -506,7 +506,9 @@
 					dev->dev_addr, skb->len);
 #endif
 		/* queue frame for delivery */
-		skb_queue_tail(&skbs, skb);
+		if (dev) {
+			skb_queue_tail(&skbs, skb);
+		}
 #ifdef USE_PROC_FS
 		atomic_inc(&(ethmf_groups[hashaddr_to_index(z->addr_hash)].txframecount));
 		atomic_add(skb->len, &(ethmf_groups[hashaddr_to_index(z->addr_hash)].txbytecount));




More information about the dahdi-commits mailing list