summaryrefslogtreecommitdiffstats
path: root/driver/base.c
diff options
context:
space:
mode:
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 );