diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-11-28 18:40:35 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-11-28 18:40:35 +0100 |
commit | a80eec4346d5eca0dacc772aeaa5aa2094a660e2 (patch) | |
tree | e7427b61b65f6d8392bb564829763b9bc4691649 /driver | |
parent | 0aa2c59efc31896e94dc478741f540605b670c2d (diff) | |
download | ipecamera-a80eec4346d5eca0dacc772aeaa5aa2094a660e2.tar.gz ipecamera-a80eec4346d5eca0dacc772aeaa5aa2094a660e2.tar.bz2 ipecamera-a80eec4346d5eca0dacc772aeaa5aa2094a660e2.tar.xz ipecamera-a80eec4346d5eca0dacc772aeaa5aa2094a660e2.zip |
Fix double reference counting on the kernel module causing GPF
Diffstat (limited to 'driver')
-rw-r--r-- | driver/base.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/driver/base.c b/driver/base.c index 51dd1f4..8215660 100644 --- a/driver/base.c +++ b/driver/base.c @@ -501,7 +501,6 @@ static struct file_operations pcidriver_fops = { }; void pcidriver_module_get(pcidriver_privdata_t *privdata) { - try_module_get(THIS_MODULE); atomic_inc(&(privdata->refs)); // mod_info("Ref: %i\n", atomic_read(&(privdata->refs))); } @@ -511,7 +510,6 @@ void pcidriver_module_put(pcidriver_privdata_t *privdata) { atomic_inc(&(privdata->refs)); mod_info("Reference counting error..."); } else { - module_put(THIS_MODULE); // mod_info("Unref: %i\n", atomic_read(&(privdata->refs))); } } |