aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/events/uprobes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c
index c5caeecea1dc..985be4d80fe8 100644
--- a/kernel/events/uprobes.c
+++ b/kernel/events/uprobes.c
@@ -1112,7 +1112,7 @@ int uprobe_mmap(struct vm_area_struct *vma)
1112/* 1112/*
1113 * Called in context of a munmap of a vma. 1113 * Called in context of a munmap of a vma.
1114 */ 1114 */
1115void uprobe_munmap(struct vm_area_struct *vma) 1115void uprobe_munmap(struct vm_area_struct *vma, unsigned long start, unsigned long end)
1116{ 1116{
1117 struct list_head tmp_list; 1117 struct list_head tmp_list;
1118 struct uprobe *uprobe, *u; 1118 struct uprobe *uprobe, *u;
@@ -1138,7 +1138,7 @@ void uprobe_munmap(struct vm_area_struct *vma)
1138 list_del(&uprobe->pending_list); 1138 list_del(&uprobe->pending_list);
1139 vaddr = vma_address(vma, uprobe->offset); 1139 vaddr = vma_address(vma, uprobe->offset);
1140 1140
1141 if (vaddr >= vma->vm_start && vaddr < vma->vm_end) { 1141 if (vaddr >= start && vaddr < end) {
1142 /* 1142 /*
1143 * An unregister could have removed the probe before 1143 * An unregister could have removed the probe before
1144 * unmap. So check before we decrement the count. 1144 * unmap. So check before we decrement the count.