Commit 35efbcab authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

[PATCH] m68k: cast in strnlen switched to unsigned long

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a5d361fc
......@@ -805,7 +805,7 @@ static inline long strnlen_user(const char __user *src, long n)
{
long res;
res = -(long)src;
res = -(unsigned long)src;
__asm__ __volatile__
("1:\n"
" tstl %2\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment