[zaptel-commits] russell: tag 1.4.9.1 r3867 - /tags/1.4.9.1/kernel/tor2.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Thu Feb 21 15:06:36 CST 2008


Author: russell
Date: Thu Feb 21 15:06:35 2008
New Revision: 3867

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3867
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 :-)

(patch by kpfleming)

Modified:
    tags/1.4.9.1/kernel/tor2.c

Modified: tags/1.4.9.1/kernel/tor2.c
URL: http://svn.digium.com/view/zaptel/tags/1.4.9.1/kernel/tor2.c?view=diff&rev=3867&r1=3866&r2=3867
==============================================================================
--- tags/1.4.9.1/kernel/tor2.c (original)
+++ tags/1.4.9.1/kernel/tor2.c Thu Feb 21 15:06:35 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