diff options
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; } |