diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-12-07 14:20:38 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-12-07 14:20:38 +0000 |
commit | 39363ceda4f2a0cefac8d46163ca313f1142c821 (patch) | |
tree | 06fa48c848957ec800614b16f2ce18685e2ec8d9 /include | |
parent | 2525e677f980486d1aaba92411fb9fa40c48d20d (diff) |
dahdi: Prevent unloadable module on failed open.
If chan->span->ops->open() fails then the reference count of the module
implementing the board driver will not be decremented. The result is a
module that would always be "in use" and unloadable.
This change makes sure to release that reference when open failed.
(closes issue #18422)
Reported by: avarvit
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Angelos Varvitsiotis <avarvit@admin.grnet.gr>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9510 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions