[zaptel-commits] kpfleming: branch 1.4 r3863 - /branches/1.4/kernel/tor2.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Thu Feb 21 11:51:17 CST 2008


Author: kpfleming
Date: Thu Feb 21 11:51:17 2008
New Revision: 3863

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3863
Log:
the tor2 private structure has a field for the corresponding PCI device pointer, but it was never filled in... since it is now being used in the init_spans() function, this caused a NULL pointer dereference. solve that problem by actually filling in the pointer variable that already existed :-)

Modified:
    branches/1.4/kernel/tor2.c

Modified: branches/1.4/kernel/tor2.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/tor2.c?view=diff&rev=3863&r1=3862&r2=3863
==============================================================================
--- branches/1.4/kernel/tor2.c (original)
+++ branches/1.4/kernel/tor2.c Thu Feb 21 11:51:17 2008
@@ -372,6 +372,7 @@
 		memset(tor->chans[x],0,sizeof(struct zt_chan) * 31);
 	}
 	/* Load the resources */
+	tor->pci = pdev;
 	tor->irq = pdev->irq;
 	if (tor->irq < 1) {
 		printk(KERN_ERR "No IRQ allocated for device\n");




More information about the zaptel-commits mailing list