mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
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;
|
||||
|
||||
|
||||