commit | 226a07ef0a5a2dfad4cce1a5c226c4cb7370d41f | [log] [tgz] |
---|---|---|
author | Jan Kara <jack@suse.cz> | Wed Jun 03 15:50:35 2015 +0200 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Wed Jun 03 08:00:22 2015 -0700 |
tree | 7b957c610ea1df9e099173ac29e84ef7ca6856b4 | |
parent | 8cd9234c64c584432f6992fe944ca9e46ca8ea76 [diff] |
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: Jan Kara <jack@suse.cz> [ Also added commentary about preferably not using this function ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>