From: Ralf Baechle Date: Tue, 4 Nov 2014 10:54:29 +0000 (+0100) Subject: MIPS: Fix strnlen_user() return value in case of overlong strings. X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~148^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0097761013253930341e23723d64e0845c3f9edd;p=pandora-kernel.git 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: Ralf Baechle --- Reading git-diff-tree failed