diff options
| author | John W. Linville <linville@tuxdriver.com> | 2006-07-27 14:27:06 -0400 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2006-07-27 14:27:06 -0400 |
| commit | 20f99dcf417a28089ef6c877ae97f5dec2eab435 (patch) | |
| tree | b4fe1f3e429d6a82ddaaa8e12899da630cfa8a63 /arch/i386/lib/usercopy.c | |
| parent | dd2f5538a157bda68bfa8efb39feaaccdda9e74e (diff) | |
| parent | 64821324ca49f24be1a66f2f432108f96a24e596 (diff) | |
Merge branch 'from-linus' into upstream
Diffstat (limited to 'arch/i386/lib/usercopy.c')
| -rw-r--r-- | arch/i386/lib/usercopy.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/i386/lib/usercopy.c b/arch/i386/lib/usercopy.c index 4b75212ab6dd..efc7e7d5f4d0 100644 --- a/arch/i386/lib/usercopy.c +++ b/arch/i386/lib/usercopy.c | |||
| @@ -843,7 +843,6 @@ unsigned long __copy_from_user_ll_nocache_nozero(void *to, const void __user *fr | |||
| 843 | unsigned long | 843 | unsigned long |
| 844 | copy_to_user(void __user *to, const void *from, unsigned long n) | 844 | copy_to_user(void __user *to, const void *from, unsigned long n) |
| 845 | { | 845 | { |
| 846 | might_sleep(); | ||
| 847 | BUG_ON((long) n < 0); | 846 | BUG_ON((long) n < 0); |
| 848 | if (access_ok(VERIFY_WRITE, to, n)) | 847 | if (access_ok(VERIFY_WRITE, to, n)) |
| 849 | n = __copy_to_user(to, from, n); | 848 | n = __copy_to_user(to, from, n); |
| @@ -870,7 +869,6 @@ EXPORT_SYMBOL(copy_to_user); | |||
| 870 | unsigned long | 869 | unsigned long |
| 871 | copy_from_user(void *to, const void __user *from, unsigned long n) | 870 | copy_from_user(void *to, const void __user *from, unsigned long n) |
| 872 | { | 871 | { |
| 873 | might_sleep(); | ||
| 874 | BUG_ON((long) n < 0); | 872 | BUG_ON((long) n < 0); |
| 875 | if (access_ok(VERIFY_READ, from, n)) | 873 | if (access_ok(VERIFY_READ, from, n)) |
| 876 | n = __copy_from_user(to, from, n); | 874 | n = __copy_from_user(to, from, n); |
