[svn-commits] tzafrir: linux/trunk r5118 - /linux/trunk/drivers/dahdi/wct1xxp.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Oct 22 06:44:55 CDT 2008


Author: tzafrir
Date: Wed Oct 22 06:44:54 2008
New Revision: 5118

URL: http://svn.digium.com/view/dahdi?view=rev&rev=5118
Log:
wct1xxp: fix error handling at device startup.

And also give more useful error messages if things go bad.

(closes issue #13607)

Patches: wct1xxp_pci.diff uploaded by tzafrir (license 46)
Tested by: klaus3000

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

Modified: linux/trunk/drivers/dahdi/wct1xxp.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/wct1xxp.c?view=diff&rev=5118&r1=5117&r2=5118
==============================================================================
--- linux/trunk/drivers/dahdi/wct1xxp.c (original)
+++ linux/trunk/drivers/dahdi/wct1xxp.c Wed Oct 22 06:44:54 2008
@@ -1273,11 +1273,13 @@
 	unsigned int *canary;
 	unsigned int x;
 	
-	if (!pci_enable_device(pdev)) {
+	if (pci_enable_device(pdev)) {
+		printk(KERN_ERR "%s: pci_enable_device failed\n", __FUNCTION__);
 		return -EIO;
 	}
 
 	if (!(wc = kmalloc(sizeof(*wc), GFP_KERNEL))) {
+		printk(KERN_ERR "%s: Failed allocation a wc\n", __FUNCTION__);
 		return -ENOMEM;
 	}
 




More information about the svn-commits mailing list