Skip to content

Commit

Permalink
[PATCH] m68k: cast in strnlen switched to unsigned long
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jan 12, 2006
1 parent a5d361f commit 35efbca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-m68k/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 35efbca

Please sign in to comment.