From 39b33ce4be920b19a6b0f694febf8609ae64512b Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 12 Apr 2011 02:57:02 +0200 Subject: Infrastructure for event API --- driver/base.c | 1 + 1 file changed, 1 insertion(+) (limited to 'driver/base.c') 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 ); -- cgit v1.2.3