summaryrefslogtreecommitdiff
path: root/wct4xxp.c
diff options
context:
space:
mode:
Diffstat (limited to 'wct4xxp.c')
-rwxr-xr-xwct4xxp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wct4xxp.c b/wct4xxp.c
index 104ed2e..05694ef 100755
--- a/wct4xxp.c
+++ b/wct4xxp.c
@@ -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;
}