aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 99186556f8d3..d86830c86ce8 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -2642,6 +2642,7 @@ static long exact_copy_from_user(void *to, const void __user * from,
2642 if (!access_ok(VERIFY_READ, from, n)) 2642 if (!access_ok(VERIFY_READ, from, n))
2643 return n; 2643 return n;
2644 2644
2645 current->kernel_uaccess_faults_ok++;
2645 while (n) { 2646 while (n) {
2646 if (__get_user(c, f)) { 2647 if (__get_user(c, f)) {
2647 memset(t, 0, n); 2648 memset(t, 0, n);
@@ -2651,6 +2652,7 @@ static long exact_copy_from_user(void *to, const void __user * from,
2651 f++; 2652 f++;
2652 n--; 2653 n--;
2653 } 2654 }
2655 current->kernel_uaccess_faults_ok--;
2654 return n; 2656 return n;
2655} 2657}
2656 2658