Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312240
b: refs/heads/master
c: 593609a
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Ingo Molnar committed Jun 16, 2012
1 parent 4d5211c commit 9db7118
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 816c03fbabe64fa09f66fbb64e932081af381415
refs/heads/master: 593609a59600c8377f311b300f14deacb155b9a4
12 changes: 6 additions & 6 deletions trunk/kernel/events/uprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,21 +581,21 @@ static bool consumer_del(struct uprobe *uprobe, struct uprobe_consumer *uc)

static int
__copy_insn(struct address_space *mapping, struct file *filp, char *insn,
unsigned long nbytes, unsigned long offset)
unsigned long nbytes, loff_t offset)
{
struct page *page;
void *vaddr;
unsigned long off1;
unsigned long idx;
unsigned long off;
pgoff_t idx;

if (!filp)
return -EINVAL;

if (!mapping->a_ops->readpage)
return -EIO;

idx = (unsigned long)(offset >> PAGE_CACHE_SHIFT);
off1 = offset &= ~PAGE_MASK;
idx = offset >> PAGE_CACHE_SHIFT;
off = offset & ~PAGE_MASK;

/*
* Ensure that the page that has the original instruction is
Expand All @@ -606,7 +606,7 @@ __copy_insn(struct address_space *mapping, struct file *filp, char *insn,
return PTR_ERR(page);

vaddr = kmap_atomic(page);
memcpy(insn, vaddr + off1, nbytes);
memcpy(insn, vaddr + off, nbytes);
kunmap_atomic(vaddr);
page_cache_release(page);

Expand Down

0 comments on commit 9db7118

Please sign in to comment.