diff options
Diffstat (limited to 'lib/strnlen_user.c')
-rw-r--r-- | lib/strnlen_user.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/strnlen_user.c b/lib/strnlen_user.c index a28df5206d95..36c15a2889e4 100644 --- a/lib/strnlen_user.c +++ b/lib/strnlen_user.c | |||
@@ -84,7 +84,8 @@ static inline long do_strnlen_user(const char __user *src, unsigned long count, | |||
84 | * @str: The string to measure. | 84 | * @str: The string to measure. |
85 | * @count: Maximum count (including NUL character) | 85 | * @count: Maximum count (including NUL character) |
86 | * | 86 | * |
87 | * Context: User context only. This function may sleep. | 87 | * Context: User context only. This function may sleep if pagefaults are |
88 | * enabled. | ||
88 | * | 89 | * |
89 | * Get the size of a NUL-terminated string in user space. | 90 | * Get the size of a NUL-terminated string in user space. |
90 | * | 91 | * |
@@ -113,7 +114,8 @@ EXPORT_SYMBOL(strnlen_user); | |||
113 | * strlen_user: - Get the size of a user string INCLUDING final NUL. | 114 | * strlen_user: - Get the size of a user string INCLUDING final NUL. |
114 | * @str: The string to measure. | 115 | * @str: The string to measure. |
115 | * | 116 | * |
116 | * Context: User context only. This function may sleep. | 117 | * Context: User context only. This function may sleep if pagefaults are |
118 | * enabled. | ||
117 | * | 119 | * |
118 | * Get the size of a NUL-terminated string in user space. | 120 | * Get the size of a NUL-terminated string in user space. |
119 | * | 121 | * |