summaryrefslogtreecommitdiffstats
path: root/driver/kmem.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-17 06:25:14 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-17 06:25:14 +0200
commitec5fd54c7559392139fa704a57185f4d4244dfde (patch)
tree05c138b1d5a350f5454a1a18bd051546e7cf8632 /driver/kmem.c
parent112030c40f88dde281073e00e4c24cc48daa99d2 (diff)
downloadipecamera-ec5fd54c7559392139fa704a57185f4d4244dfde.tar.gz
ipecamera-ec5fd54c7559392139fa704a57185f4d4244dfde.tar.bz2
ipecamera-ec5fd54c7559392139fa704a57185f4d4244dfde.tar.xz
ipecamera-ec5fd54c7559392139fa704a57185f4d4244dfde.zip
Few fixes
Diffstat (limited to 'driver/kmem.c')
-rw-r--r--driver/kmem.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/driver/kmem.c b/driver/kmem.c
index a720095..a7180f8 100644
--- a/driver/kmem.c
+++ b/driver/kmem.c
@@ -165,6 +165,7 @@ int pcidriver_kmem_free( pcidriver_privdata_t *privdata, kmem_handle_t *kmem_han
if ((kmem_entry = pcidriver_kmem_find_entry(privdata, kmem_handle)) == NULL)
return -EINVAL; /* kmem_handle is not valid */
+ mod_info("1: %x %lx %lx\n", kmem_handle->flags, kmem_entry->refs, kmem_entry->mode);
if (kmem_entry->mode&KMEM_MODE_COUNT)
kmem_entry->mode -= 1;
@@ -174,6 +175,8 @@ int pcidriver_kmem_free( pcidriver_privdata_t *privdata, kmem_handle_t *kmem_han
if (kmem_handle->flags&KMEM_FLAG_PERSISTENT)
kmem_entry->mode &= ~KMEM_MODE_PERSISTENT;
+
+ mod_info("2: %x %lx %lx\n", kmem_handle->flags, kmem_entry->refs, kmem_entry->mode);
if (kmem_handle->flags&KMEM_FLAG_REUSE)
return 0;
@@ -192,6 +195,9 @@ int pcidriver_kmem_free( pcidriver_privdata_t *privdata, kmem_handle_t *kmem_han
if (((kmem_entry->mode&KMEM_MODE_EXCLUSIVE)==0)&&(kmem_entry->mode&KMEM_MODE_COUNT))
return 0;
+
+ mod_info("cleaned %i\n", kmem_entry->id);
+
return pcidriver_kmem_free_entry(privdata, kmem_entry);
}