https://github.com/torvalds/linux
Revision 0097761013253930341e23723d64e0845c3f9edd authored by Ralf Baechle on 04 November 2014, 10:54:29 UTC, committed by Ralf Baechle on 04 November 2014, 11:46:33 UTC
We were returning maxlen like the userland strnlen if no '\0' character
was encountered while the kernel version is expected to return a value
larger than maxlen.  Fixed to return maxlen + 1.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 30fa053
History
Tip revision: 0097761013253930341e23723d64e0845c3f9edd authored by Ralf Baechle on 04 November 2014, 10:54:29 UTC
MIPS: Fix strnlen_user() return value in case of overlong strings.
Tip revision: 0097761
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.1 KB
.mailmap -rw-r--r-- 4.7 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.8 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 284.4 KB
Makefile -rw-r--r-- 53.1 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top