From: Jan Kara Date: Tue, 2 Jun 2015 10:38:39 +0000 (+0200) Subject: s390/keyboard: avoid off-by-one when using strnlen_user() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~140^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cb81811e924ff0214ce4e8344e2feb1549cf0ce;p=pandora-kernel.git s390/keyboard: avoid off-by-one when using strnlen_user() strnlen_user() returns the length of the string including terminating 0. So avoid counting it again and unnecessarily reducing maximum string size by 1. Signed-off-by: Jan Kara Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed