summaryrefslogtreecommitdiffstats
path: root/driver/base.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-04-12 02:57:02 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-04-12 02:57:02 +0200
commit39b33ce4be920b19a6b0f694febf8609ae64512b (patch)
treefc058356c3417c871e09bc377243ab3f9b89999a /driver/base.c
parentee6ea2f21e2516047db66004fda060a23b152103 (diff)
downloadpcitool-39b33ce4be920b19a6b0f694febf8609ae64512b.tar.gz
pcitool-39b33ce4be920b19a6b0f694febf8609ae64512b.tar.bz2
pcitool-39b33ce4be920b19a6b0f694febf8609ae64512b.tar.xz
pcitool-39b33ce4be920b19a6b0f694febf8609ae64512b.zip
Infrastructure for event API
Diffstat (limited to 'driver/base.c')
-rw-r--r--driver/base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/base.c b/driver/base.c
index c740856..b999cac 100644
--- a/driver/base.c
+++ b/driver/base.c
@@ -626,6 +626,7 @@ int pcidriver_mmap_pci(pcidriver_privdata_t *privdata, struct vm_area_struct *vm
/* Check sizes */
vma_size = (vmap->vm_end - vmap->vm_start);
+
if ((vma_size != bar_length) &&
((bar_length < PAGE_SIZE) && (vma_size != PAGE_SIZE))) {
mod_info( "mmap size is not correct! bar: %lu - vma: %lu\n", bar_length, vma_size );