From: Al Viro Date: Thu, 12 Jan 2006 09:06:34 +0000 (-0800) Subject: [PATCH] m68k: cast in strnlen switched to unsigned long X-Git-Tag: v2.6.16-rc1~193 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35efbcabdc217f2b3a73bf3b895559e8f269e258;p=linux-2.6 [PATCH] m68k: cast in strnlen switched to unsigned long Signed-off-by: Al Viro Cc: Roman Zippel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-m68k/uaccess.h b/include/asm-m68k/uaccess.h index a653bf80b8..2ffd87b0a7 100644 --- a/include/asm-m68k/uaccess.h +++ b/include/asm-m68k/uaccess.h @@ -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"