[svn-commits] sruffell: linux/trunk r6220 - /linux/trunk/drivers/dahdi/wctc4xxp/base.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Mar 23 18:48:36 CDT 2009
Author: sruffell
Date: Mon Mar 23 18:48:33 2009
New Revision: 6220
URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=6220
Log:
If the driver fails to register, make sure we cleanup the command cache.
Modified:
linux/trunk/drivers/dahdi/wctc4xxp/base.c
Modified: linux/trunk/drivers/dahdi/wctc4xxp/base.c
URL: http://svn.digium.com/svn-view/dahdi/linux/trunk/drivers/dahdi/wctc4xxp/base.c?view=diff&rev=6220&r1=6219&r2=6220
==============================================================================
--- linux/trunk/drivers/dahdi/wctc4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wctc4xxp/base.c Mon Mar 23 18:48:33 2009
@@ -3494,8 +3494,10 @@
spin_lock_init(&wctc4xxp_list_lock);
INIT_LIST_HEAD(&wctc4xxp_list);
res = dahdi_pci_module(&wctc4xxp_driver);
- if (res)
+ if (res) {
+ kmem_cache_destroy(cmd_cache);
return -ENODEV;
+ }
return 0;
}
More information about the svn-commits
mailing list