diff options
-rw-r--r-- | zttranscode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zttranscode.c b/zttranscode.c index 207b561..aa6bd3a 100644 --- a/zttranscode.c +++ b/zttranscode.c @@ -371,9 +371,9 @@ static int zt_tc_mmap(struct file *file, struct vm_area_struct *vma) physical = (unsigned long) virt_to_phys(ztc->tch); #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10) - res = remap_pfn_range(vma, vma->vm_start, physical, sizeof(struct zt_transcode_header), PAGE_SHARED); + res = remap_pfn_range(vma, vma->vm_start, physical >> PAGE_SHIFT, sizeof(struct zt_transcode_header), PAGE_SHARED); #else - res = remap_page_range(vma, vma->vm_start, physical >> PAGE_SHIFT, sizeof(struct zt_transcode_header), PAGE_SHARED); + res = remap_page_range(vma, vma->vm_start, physical, sizeof(struct zt_transcode_header), PAGE_SHARED); #endif if (res) { if (debug) |