sched: signedness bug in yield_to()
Subsystems (2)
PATCH 1/1 sched: 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 <[email protected]>
kernel/sched/core.c +1 -1
@@ -4384,7 +4384,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 ();
[tip:sched/core] sched: Fix signedness bug in yield_to()
Commit-ID: c3c186403c6abd32e719f005f0af950155a9e54d Gitweb: http://git.kernel.org/tip/c3c186403c6abd32e719f005f0af950155a9e54d Author: Dan Carpenter <[email protected]> AuthorDate: Tue, 5 Feb 2013 14:37:51 +0300 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 5 Feb 2013 12:59:29 +0100
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 <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Mike Galbraith <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/core.c +1 -1
@@ -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 ();