|
@@ -2306,7 +2306,7 @@ pfm_smpl_buffer_alloc(struct task_struct *task, struct file *filp, pfm_context_t
|
|
* partially initialize the vma for the sampling buffer
|
|
* partially initialize the vma for the sampling buffer
|
|
*/
|
|
*/
|
|
vma->vm_mm = mm;
|
|
vma->vm_mm = mm;
|
|
- vma->vm_file = filp;
|
|
|
|
|
|
+ vma->vm_file = get_file(filp);
|
|
vma->vm_flags = VM_READ| VM_MAYREAD |VM_RESERVED;
|
|
vma->vm_flags = VM_READ| VM_MAYREAD |VM_RESERVED;
|
|
vma->vm_page_prot = PAGE_READONLY; /* XXX may need to change */
|
|
vma->vm_page_prot = PAGE_READONLY; /* XXX may need to change */
|
|
|
|
|
|
@@ -2345,8 +2345,6 @@ pfm_smpl_buffer_alloc(struct task_struct *task, struct file *filp, pfm_context_t
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
|
|
|
|
- get_file(filp);
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* now insert the vma in the vm list for the process, must be
|
|
* now insert the vma in the vm list for the process, must be
|
|
* done with mmap lock held
|
|
* done with mmap lock held
|