diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-12-21 18:10:15 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-12-21 18:10:15 +0000 |
commit | 91d86c47be69bcd774512ea76171007e23d682e9 (patch) | |
tree | 0d96b4e7a6fc6ff4d20814b1cd3bcd64209eed33 | |
parent | 60c26bfcc63c3c302fc58ad91cef630c6598212a (diff) |
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@xorcom.com>
Acked-By: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10383 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r-- | drivers/dahdi/xpp/xbus-core.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); |