[svn-commits] kpfleming: linux/trunk r4648 - /linux/trunk/drivers/dahdi/dahdi_dynamic_eth.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Aug 1 17:07:28 CDT 2008


Author: kpfleming
Date: Fri Aug  1 17:07:28 2008
New Revision: 4648

URL: http://svn.digium.com/view/dahdi?view=rev&rev=4648
Log:
make skb_linearize() work for kernels <= 2.6.17 too

Modified:
    linux/trunk/drivers/dahdi/dahdi_dynamic_eth.c

Modified: linux/trunk/drivers/dahdi/dahdi_dynamic_eth.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/dahdi_dynamic_eth.c?view=diff&rev=4648&r1=4647&r2=4648
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi_dynamic_eth.c (original)
+++ linux/trunk/drivers/dahdi/dahdi_dynamic_eth.c Fri Aug  1 17:07:28 2008
@@ -99,7 +99,11 @@
 #endif	
 	if (span) {
 		skb_pull(skb, sizeof(struct ztdeth_header));
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
 		skb_linearize(skb);
+#else
+		skb_linearize(skb, GFP_KERNEL);
+#endif
 		dahdi_dynamic_receive(span, (unsigned char *)skb->data, skb->len);
 	}
 	kfree_skb(skb);




More information about the svn-commits mailing list