Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 00977610 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

MIPS: Fix strnlen_user() return value in case of overlong strings.



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: default avatarRalf Baechle <ralf@linux-mips.org>
parent 30fa0530
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment