diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-02-18 16:53:04 -0800 |
|---|---|---|
| committer | Richard Henderson <rth@kanga.twiddle.net> | 2003-02-18 16:53:04 -0800 |
| commit | e53f5fc18aacc422bc09486657fbe3cf7f682fff (patch) | |
| tree | e020e511a355feecfdded17b23b80d09768d7016 /kernel | |
| parent | ffb5450c435e42e0eaa206cb13e6f4731e0f3ba8 (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.c | 2 |
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; } |
