summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-02-05 12:37:51 +0100
committerIngo Molnar <mingo@kernel.org>2013-02-05 12:59:29 +0100
commitc3c186403c6abd32e719f005f0af950155a9e54d (patch)
tree76b0b2bc308c24d0e8b3729993de548fdf4a42aa
parentsched: Fix select_idle_sibling() bouncing cow syndrome (diff)
downloadlinux-c3c186403c6abd32e719f005f0af950155a9e54d.tar.xz
linux-c3c186403c6abd32e719f005f0af950155a9e54d.zip
sched: Fix signedness bug in yield_to()
In 7b270f6099 "sched: Bail out of yield_to when source and target runqueue has one task" we changed this to store -ESRCH so it needs to be signed. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: kbuild@01.org Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Mike Galbraith <efault@gmx.de> Link: http://lkml.kernel.org/r/20130205113751.GA20521@elgon.mountain Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--kernel/sched/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 26058d0bebba..c5b089df7ea8 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -4371,7 +4371,7 @@ bool __sched yield_to(struct task_struct *p, bool preempt)
struct task_struct *curr = current;
struct rq *rq, *p_rq;
unsigned long flags;
- bool yielded = 0;
+ int yielded = 0;
local_irq_save(flags);
rq = this_rq();