um: Fix return value of strnlen_user()
authorRichard Weinberger <richard@nod.at>
Sat, 11 May 2013 13:35:32 +0000 (15:35 +0200)
committerRichard Weinberger <richard@nod.at>
Fri, 19 Jul 2013 08:45:17 +0000 (10:45 +0200)
commit3179ce7254ffa43f3ba4409f31a954ecc4a8d408
tree0af7d0b24486289bc0333f5812eac1b7cddea9e6
parentecb2cf1a6b63825a258ff4fe0d7f3070fbe4676b
um: Fix return value of strnlen_user()

In case of an error it must not return -EFAULT.
Return 0 like all other archs do.

Reported-by: toralf.foerster@gmx.de
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/kernel/skas/uaccess.c