Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312236
b: refs/heads/master
c: eb2bf57
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Ingo Molnar committed Jun 16, 2012
1 parent 1023a7c commit 010672a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fc36f59565861af2e897225bc3782479a26c5d5a
refs/heads/master: eb2bf57bee42c7565032f93adaa211e2c9fcc52c
5 changes: 0 additions & 5 deletions trunk/kernel/events/uprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ static int write_opcode(struct arch_uprobe *auprobe, struct mm_struct *mm,
struct vm_area_struct *vma;
struct uprobe *uprobe;
unsigned long pgoff;
loff_t addr;
int ret;
retry:
/* Read the page with vaddr into memory */
Expand All @@ -235,10 +234,6 @@ static int write_opcode(struct arch_uprobe *auprobe, struct mm_struct *mm,
if (mapping != vma->vm_file->f_mapping)
goto put_out;

addr = vma_address(vma, uprobe->offset);
if (vaddr != (unsigned long)addr)
goto put_out;

ret = -ENOMEM;
new_page = alloc_page_vma(GFP_HIGHUSER_MOVABLE, vma, vaddr);
if (!new_page)
Expand Down

0 comments on commit 010672a

Please sign in to comment.