--- ./drivers/ieee1394/video1394.c~ Tue Jan 22 05:11:08 2002 +++ ./drivers/ieee1394/video1394.c Wed Jan 23 07:04:58 2002 @@ -844,8 +844,9 @@ reg_write(ohci, OHCI1394_IsoXmitIntMaskSet, 1<ctx); } -static int do_iso_mmap(struct ti_ohci *ohci, struct dma_iso_ctx *d, - const char *adr, unsigned long size) +static int do_iso_mmap(struct vm_area_struct *vma, struct ti_ohci *ohci, + struct dma_iso_ctx *d, + const char *adr, unsigned long size) { unsigned long start=(unsigned long) adr; unsigned long page,pos; @@ -865,7 +866,7 @@ pos=(unsigned long) d->buf; while (size > 0) { page = kvirt_to_pa(pos); - if (remap_page_range(start, page, PAGE_SIZE, PAGE_SHARED)) + if (remap_page_range(vma, start, page, PAGE_SIZE, PAGE_SHARED)) return -EAGAIN; start+=PAGE_SIZE; pos+=PAGE_SIZE; @@ -1406,7 +1407,7 @@ if (video->current_ctx == NULL) { PRINT(KERN_ERR, ohci->id, "Current iso context not set"); } else - res = do_iso_mmap(ohci, video->current_ctx, + res = do_iso_mmap(vma, ohci, video->current_ctx, (char *)vma->vm_start, (unsigned long)(vma->vm_end-vma->vm_start)); unlock_kernel();