s390 keyboard.c: don't open-code strndup_user()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 26 Apr 2017 21:28:25 +0000 (17:28 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 May 2017 03:41:50 +0000 (23:41 -0400)
commitb7310105ab2cd9168fe50564d8b9d248325a326e
treec29df758c5f6831c37a59e05af794e8b0c99eada
parent8f3ba02decc943815b6a1bacfbbd39f9850a7def
s390 keyboard.c: don't open-code strndup_user()

... especially not with off-by-ones (strnlen_user() already includes NUL
into its count).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/s390/char/keyboard.c