From 70a006080b5b2ee7ca463739252b60c526ce2913 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Thu, 21 Feb 2008 17:51:17 +0000 Subject: 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 :-) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3863 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- kernel/tor2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/tor2.c b/kernel/tor2.c index b0962f2..55939e2 100644 --- a/kernel/tor2.c +++ b/kernel/tor2.c @@ -372,6 +372,7 @@ static int __devinit tor2_probe(struct pci_dev *pdev, const struct pci_device_id 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"); -- cgit v1.2.3