git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PM: no suspend_prepare() phase
[pandora-kernel.git]
/
kernel
/
sched.c
diff --git
a/kernel/sched.c
b/kernel/sched.c
index
a2be2d0
..
a234fbe
100644
(file)
--- a/
kernel/sched.c
+++ b/
kernel/sched.c
@@
-4162,10
+4162,8
@@
do_sched_setscheduler(pid_t pid, int policy, struct sched_param __user *param)
read_unlock_irq(&tasklist_lock);
return -ESRCH;
}
- get_task_struct(p);
- read_unlock_irq(&tasklist_lock);
retval = sched_setscheduler(p, policy, &lparam);
-
put_task_struct(p
);
+
read_unlock_irq(&tasklist_lock
);
return retval;
}