Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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"