From: Andrey Vagin Date: Tue, 20 Jul 2010 22:23:14 +0000 (-0700) Subject: posix_timer: Move copy_to_user(created_timer_id) down in timer_create() X-Git-Tag: v2.6.36-rc1~515^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b08de0073a5697cf84d6f448d6dbc6cf02fc6b5;p=pandora-kernel.git 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 --- Reading git-diff-tree failed