summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-02-18 16:53:04 -0800
committerRichard Henderson <rth@kanga.twiddle.net>2003-02-18 16:53:04 -0800
commite53f5fc18aacc422bc09486657fbe3cf7f682fff (patch)
treee020e511a355feecfdded17b23b80d09768d7016 /kernel
parentffb5450c435e42e0eaa206cb13e6f4731e0f3ba8 (diff)
[PATCH] posix-timers: fix callback address truncation
Casting a 64-bit address to int, then to unsigned long will truncate it.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/posix-timers.c2
1 files changed, 1 insertions, 1 deletions
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;
}