https://github.com/torvalds/linux
Revision 226a07ef0a5a2dfad4cce1a5c226c4cb7370d41f authored by Jan Kara on 03 June 2015, 13:50:35 UTC, committed by Linus Torvalds on 03 June 2015, 15:00:22 UTC
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>
1 parent 8cd9234
History
Tip revision: 226a07ef0a5a2dfad4cce1a5c226c4cb7370d41f authored by Jan Kara on 03 June 2015, 13:50:35 UTC
lib: Clarify the return value of strnlen_user()
Tip revision: 226a07e
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 4.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.7 KB
Kbuild -rw-r--r-- 2.1 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 303.0 KB
Makefile -rw-r--r-- 53.1 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top