No need to re-set vm_pgoff before calling remap_pfn_range(). It will do

it itself in cases where it is necessary.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-03-06 20:29:39 +01:00
1 parent 0a19d4ac90
commit 2c4f501f03
1 file changed
+2 -3
@@ -957,9 +957,8 @@ static int xsd_kva_mmap(struct file *file, struct vm_area_struct *vma)
if ((size > PAGE_SIZE) || (vma->vm_pgoff != 0))
return -EINVAL;
vma->vm_pgoff = mfn_to_pfn(xen_start_info->store_mfn);
if (remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff,
if (remap_pfn_range(vma, vma->vm_start,
mfn_to_pfn(xen_start_info->store_mfn),
size, vma->vm_page_prot))
return -EAGAIN;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.