aboutsummaryrefslogtreecommitdiffstats
path: root/lib/strncpy_from_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/strncpy_from_user.c')
-rw-r--r--lib/strncpy_from_user.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/strncpy_from_user.c b/lib/strncpy_from_user.c
index 58eacd41526c..023ba9f3b99f 100644
--- a/lib/strncpy_from_user.c
+++ b/lib/strncpy_from_user.c
@@ -23,10 +23,11 @@
23 * hit it), 'max' is the address space maximum (and we return 23 * hit it), 'max' is the address space maximum (and we return
24 * -EFAULT if we hit it). 24 * -EFAULT if we hit it).
25 */ 25 */
26static inline long do_strncpy_from_user(char *dst, const char __user *src, long count, unsigned long max) 26static inline long do_strncpy_from_user(char *dst, const char __user *src,
27 unsigned long count, unsigned long max)
27{ 28{
28 const struct word_at_a_time constants = WORD_AT_A_TIME_CONSTANTS; 29 const struct word_at_a_time constants = WORD_AT_A_TIME_CONSTANTS;
29 long res = 0; 30 unsigned long res = 0;
30 31
31 /* 32 /*
32 * Truncate 'max' to the user-specified limit, so that 33 * Truncate 'max' to the user-specified limit, so that