git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30fa053
)
MIPS: Fix strnlen_user() return value in case of overlong strings.
author
Ralf Baechle
<ralf@linux-mips.org>
Tue, 4 Nov 2014 10:54:29 +0000
(11:54 +0100)
committer
Ralf Baechle
<ralf@linux-mips.org>
Tue, 4 Nov 2014 11:46:33 +0000
(12:46 +0100)
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>
No differences found