Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30817
b: refs/heads/master
c: e74c69f
h: refs/heads/master
i:
  30815: b1a3e37
v: v3
  • Loading branch information
Thomas Gleixner authored and Linus Torvalds committed Jun 28, 2006
1 parent 6b4f25c commit 956573a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: a1583d3e83cae1c58870602efc6328c34b644c01
refs/heads/master: e74c69f46d93d29eea0ad8647863d1c6488f0f55
4 changes: 3 additions & 1 deletion trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -4091,8 +4091,10 @@ do_sched_setscheduler(pid_t pid, int policy, struct sched_param __user *param)
read_unlock_irq(&tasklist_lock);
return -ESRCH;
}
retval = sched_setscheduler(p, policy, &lparam);
get_task_struct(p);
read_unlock_irq(&tasklist_lock);
retval = sched_setscheduler(p, policy, &lparam);
put_task_struct(p);
return retval;
}

Expand Down

0 comments on commit 956573a

Please sign in to comment.