diff options
author | russell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-03-31 22:57:19 +0000 |
---|---|---|
committer | russell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-03-31 22:57:19 +0000 |
commit | 5fe0a866899dbafdc294eedb33671f603997627c (patch) | |
tree | 6fe3c1c367d3642d1affcc5d1d414c7ad5914a4c /wct4xxp.c | |
parent | f8130503936dbdc1e1d837f0cefa26ab8d7e7710 (diff) |
add use counts to prevent kernel panics (bug #3773)
git-svn-id: http://svn.digium.com/svn/zaptel/branches/v1-0@610 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wct4xxp.c')
-rwxr-xr-x | wct4xxp.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -544,7 +544,10 @@ static int t4_open(struct zt_chan *chan) { #ifndef LINUX26 MOD_INC_USE_COUNT; +#else + try_module_get(THIS_MODULE); #endif + return 0; } @@ -552,6 +555,8 @@ static int t4_close(struct zt_chan *chan) { #ifndef LINUX26 MOD_DEC_USE_COUNT; +#else + module_put(THIS_MODULE); #endif return 0; } |