From e53f5fc18aacc422bc09486657fbe3cf7f682fff Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 18 Feb 2003 16:53:04 -0800 Subject: [PATCH] posix-timers: fix callback address truncation Casting a 64-bit address to int, then to unsigned long will truncate it. --- kernel/posix-timers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel') diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c index 6552ffa2db39..926b9f8fa8bb 100644 --- a/kernel/posix-timers.c +++ b/kernel/posix-timers.c @@ -1294,7 +1294,7 @@ do_clock_nanosleep(clockid_t which_clock, int flags, struct timespec *tsave) } restart_block->fn = clock_nanosleep_restart; restart_block->arg0 = which_clock; - restart_block->arg1 = (int)tsave; + restart_block->arg1 = (unsigned long)tsave; restart_block->arg2 = new_timer.expires; return -ERESTART_RESTARTBLOCK; } -- cgit v1.2.3