Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206136
b: refs/heads/master
c: 2b08de0
h: refs/heads/master
v: v3
  • Loading branch information
Andrey Vagin authored and Thomas Gleixner committed Jul 23, 2010
1 parent 7010e7c commit a430062
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22b8f15c2f7130bb0386f548428df2ffd4e81903
refs/heads/master: 2b08de0073a5697cf84d6f448d6dbc6cf02fc6b5
11 changes: 6 additions & 5 deletions trunk/kernel/posix-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,11 +560,6 @@ SYSCALL_DEFINE3(timer_create, const clockid_t, which_clock,
new_timer->it_clock = which_clock;
new_timer->it_overrun = -1;

if (copy_to_user(created_timer_id,
&new_timer_id, sizeof (new_timer_id))) {
error = -EFAULT;
goto out;
}
if (timer_event_spec) {
if (copy_from_user(&event, timer_event_spec, sizeof (event))) {
error = -EFAULT;
Expand All @@ -590,6 +585,12 @@ SYSCALL_DEFINE3(timer_create, const clockid_t, which_clock,
new_timer->sigq->info.si_tid = new_timer->it_id;
new_timer->sigq->info.si_code = SI_TIMER;

if (copy_to_user(created_timer_id,
&new_timer_id, sizeof (new_timer_id))) {
error = -EFAULT;
goto out;
}

error = CLOCK_DISPATCH(which_clock, timer_create, (new_timer));
if (error)
goto out;
Expand Down

0 comments on commit a430062

Please sign in to comment.