summaryrefslogtreecommitdiff
path: root/wcte11xp.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcte11xp.c')
-rwxr-xr-xwcte11xp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wcte11xp.c b/wcte11xp.c
index 7d5a361..1df94b5 100755
--- a/wcte11xp.c
+++ b/wcte11xp.c
@@ -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)