Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116631
b: refs/heads/master
c: ac2b86f
h: refs/heads/master
i:
  116629: 8f35e9d
  116627: 5140c1e
  116623: eca1eb9
v: v3
  • Loading branch information
Frédéric Weisbecker authored and Ingo Molnar committed Oct 14, 2008
1 parent c4fd200 commit ddd3751
Show file tree
Hide file tree
Showing 2 changed files with 3 additions 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: 37a52f5ef120b93734bb2461744512b55695f69c
refs/heads/master: ac2b86fdef5b44f194eefaa6b7b6aea9423d1bc2
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ ftrace_modify_code(unsigned long ip, unsigned char *old_code,
* No real locking needed, this code is run through
* kstop_machine, or before SMP starts.
*/
if (__copy_from_user(replaced, (char __user *)ip, MCOUNT_INSN_SIZE))
if (__copy_from_user_inatomic(replaced, (char __user *)ip, MCOUNT_INSN_SIZE))
return 1;

if (memcmp(replaced, old_code, MCOUNT_INSN_SIZE) != 0)
return 2;

WARN_ON_ONCE(__copy_to_user((char __user *)ip, new_code,
WARN_ON_ONCE(__copy_to_user_inatomic((char __user *)ip, new_code,
MCOUNT_INSN_SIZE));

sync_core();
Expand Down

0 comments on commit ddd3751

Please sign in to comment.