Skip to content
Commit 226a07ef authored by Jan Kara's avatar Jan Kara Committed by Linus Torvalds
Browse files

lib: Clarify the return value of strnlen_user()



strnlen_user() can return a number in a range 0 to count +
sizeof(unsigned long) - 1. Clarify the comment at the top of the
function so that users don't think the function returns at most count+1.

Signed-off-by: default avatarJan Kara <jack@suse.cz>
[ Also added commentary about preferably not using this function ]
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 8cd9234c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment