Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3c18640 authored by Dan Carpenter's avatar Dan Carpenter Committed by Ingo Molnar
Browse files

sched: Fix signedness bug in yield_to()



In 7b270f60 "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: default avatarDan 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: default avatarIngo Molnar <mingo@kernel.org>
parent e0a79f52
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();