[svn-commits] tzafrir: branch linux/2.5 r10385 - /linux/branches/2.5/drivers/dahdi/xpp/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Dec 21 12:37:37 CST 2011


Author: tzafrir
Date: Wed Dec 21 12:37:34 2011
New Revision: 10385

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10385
Log:
xpp: bad module_put() when too many Astribanks

module_put() that was added while developing the sysfs code. The real
module_get()/module_put() pair were already removed at the time of
developing code for this branch. It was only triggered when using a
system with more than 32 (MAX_BUSES) Astribanks.

Signed-off-by: Oron Peled <oron.peled at xorcom.com>
Acked-By: Tzafrir Cohen <tzafrir.cohen at xorcom.com>

Modified:
    linux/branches/2.5/drivers/dahdi/xpp/xbus-core.c

Modified: linux/branches/2.5/drivers/dahdi/xpp/xbus-core.c
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.5/drivers/dahdi/xpp/xbus-core.c?view=diff&rev=10385&r1=10384&r2=10385
==============================================================================
--- linux/branches/2.5/drivers/dahdi/xpp/xbus-core.c (original)
+++ linux/branches/2.5/drivers/dahdi/xpp/xbus-core.c Wed Dec 21 12:37:34 2011
@@ -1316,7 +1316,6 @@
 	xbus = xbus_alloc();
 	if(!xbus) {
 		ERR("%s: Failed allocating new xbus\n", __FUNCTION__);
-		module_put(THIS_MODULE);
 		return NULL;
 	}
 	snprintf(xbus->busname, XBUS_NAMELEN, "XBUS-%02d", xbus->num);




More information about the svn-commits mailing list