summaryrefslogtreecommitdiff
path: root/lib/strnlen_user.c
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2020-05-01 12:36:22 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2020-05-01 12:36:22 +1000
commit1f59cc3482c645c956a06e1b587e49df8d42ebab (patch)
tree2496b1c256ed6a61431c6fbd1738ddec92c0b578 /lib/strnlen_user.c
parent17bc43367fc2a720400d21c745db641c654c1e6b (diff)
parentb44f687386875b714dae2afa768e73401e45c21c (diff)
Merge branch 'topic/uaccess' into topic/uaccess-ppc
Merge the generic changes to add user_[read|write]_access_begin().
Diffstat (limited to 'lib/strnlen_user.c')
-rw-r--r--lib/strnlen_user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/strnlen_user.c b/lib/strnlen_user.c
index 41670d4a5816..1616710b8a82 100644
--- a/lib/strnlen_user.c
+++ b/lib/strnlen_user.c
@@ -109,9 +109,9 @@ long strnlen_user(const char __user *str, long count)
if (max > count)
max = count;
- if (user_access_begin(str, max)) {
+ if (user_read_access_begin(str, max)) {
retval = do_strnlen_user(str, count, max);
- user_access_end();
+ user_read_access_end();
return retval;
}
}