2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 21:24:00 +08:00

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

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Al Viro 2006-01-12 01:06:34 -08:00 committed by Linus Torvalds
parent a5d361fc24
commit 35efbcabdc

View File

@ -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"