Commit e53f5fc1 authored by Andrew Morton's avatar Andrew Morton Committed by Richard Henderson

[PATCH] posix-timers: fix callback address truncation

Casting a 64-bit address to int, then to unsigned long will truncate it.
parent ffb5450c
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment