From 9240671ea56e8345bc43f2493c7d884180f3c16d Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Wed, 21 Dec 2011 18:37:34 +0000 Subject: 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 Acked-By: Tzafrir Cohen git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.5@10385 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/xpp/xbus-core.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/dahdi') diff --git a/drivers/dahdi/xpp/xbus-core.c b/drivers/dahdi/xpp/xbus-core.c index 64ddd8d..42911c6 100644 --- a/drivers/dahdi/xpp/xbus-core.c +++ b/drivers/dahdi/xpp/xbus-core.c @@ -1316,7 +1316,6 @@ xbus_t *xbus_new(struct xbus_ops *ops, ushort max_send_size, struct device *tran 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); -- cgit v1.2.3