Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310608
b: refs/heads/master
c: db0dc75
h: refs/heads/master
v: v3
  • Loading branch information
Arun Sharma authored and Ingo Molnar committed Jun 6, 2012
1 parent 9737ba6 commit e6b0256
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bc6ca7b342d5ae15c3ba3081fd40271b8039fb25
refs/heads/master: db0dc75d6403b6663c0eab4c6ccb672eb9b2ed72
4 changes: 4 additions & 0 deletions trunk/arch/x86/lib/usercopy.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <linux/module.h>

#include <asm/word-at-a-time.h>
#include <linux/sched.h>

/*
* best effort, GUP based copy_from_user() that is NMI-safe
Expand All @@ -21,6 +22,9 @@ copy_from_user_nmi(void *to, const void __user *from, unsigned long n)
void *map;
int ret;

if (__range_not_ok(from, n, TASK_SIZE) == 0)
return len;

do {
ret = __get_user_pages_fast(addr, 1, 0, &page);
if (!ret)
Expand Down

0 comments on commit e6b0256

Please sign in to comment.