Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323736
b: refs/heads/master
c: 61e1d39
h: refs/heads/master
v: v3
  • Loading branch information
Srikar Dronamraju authored and Oleg Nesterov committed Aug 28, 2012
1 parent 6f38b73 commit 702e373
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 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: 508dc4f8eece1a70c493afc6511fdf5934fef567
refs/heads/master: 61e1d394984110e2e76f25572d5b1b5d48796751
2 changes: 0 additions & 2 deletions trunk/kernel/events/uprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,10 @@ static int read_opcode(struct mm_struct *mm, unsigned long vaddr, uprobe_opcode_
if (ret <= 0)
return ret;

lock_page(page);
vaddr_new = kmap_atomic(page);
vaddr &= ~PAGE_MASK;
memcpy(opcode, vaddr_new + vaddr, UPROBE_SWBP_INSN_SIZE);
kunmap_atomic(vaddr_new);
unlock_page(page);

put_page(page);

Expand Down

0 comments on commit 702e373

Please sign in to comment.