mirror of https://gitee.com/openkylin/linux.git
[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:
parent
a5d361fc24
commit
35efbcabdc
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue