Commit [2b08de]  Maximize  Restore  History

posix_timer: Move copy_to_user(created_timer_id) down in timer_create()

According to Oleg Nesterov:
We can move copy_to_user(created_timer_id) down after
"if (timer_event_spec)" block too. (but before CLOCK_DISPATCH(),
of course).

Signed-off-by: Andrey Vagin <>
Cc: Oleg Nesterov <>
Cc: Pavel Emelyanov <>
Cc: Stanislaw Gruszka <>
Cc: Andrey Vagin <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Thomas Gleixner <>

Andrey Vagin Andrey Vagin 2010-07-20

Thomas Gleixner Thomas Gleixner 2010-07-23

changed kernel
changed kernel/posix-timers.c
kernel/posix-timers.c Diff Switch to side-by-side view