Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


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 <avagin@openvz.org>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

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