From 9ce15dc967b6ae23de3fddffa588881e4770ce37 Mon Sep 17 00:00:00 2001 From: Oron Peled Date: Wed, 21 Dec 2011 18:10:15 +0000 Subject: [PATCH] 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/trunk@10383 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/xpp/xbus-core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dahdi/xpp/xbus-core.c b/drivers/dahdi/xpp/xbus-core.c index bb0e0f3..5175665 100644 --- a/drivers/dahdi/xpp/xbus-core.c +++ b/drivers/dahdi/xpp/xbus-core.c @@ -1413,7 +1413,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);