diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-03-21 05:14:11 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-03-21 05:14:11 +0000 |
commit | 705873982964a2d7c06131f5eed67c7f4d156f7f (patch) | |
tree | 757fdb1928bb0d36a3186e93038a16b8775327ff /wcte11xp.c | |
parent | 9629b7e50e006f65c2c58dd847b6436017100005 (diff) |
Add use counts to currently shipping stuff (bug #3773):
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@607 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wcte11xp.c')
-rwxr-xr-x | wcte11xp.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -226,6 +226,8 @@ static int t1xxp_open(struct zt_chan *chan) wc->usecount++; #ifndef LINUX26 MOD_INC_USE_COUNT; +#else + try_module_get(THIS_MODULE); #endif return 0; } @@ -346,6 +348,8 @@ static int t1xxp_close(struct zt_chan *chan) wc->usecount--; #ifndef LINUX26 MOD_DEC_USE_COUNT; +#else + module_put(THIS_MODULE); #endif /* If we're dead, release us now */ if (!wc->usecount && wc->dead) |