Skip to content
Commit 3104bf03 authored by Christian Engelmayer's avatar Christian Engelmayer Committed by Ingo Molnar
Browse files

sched: Fix out of scope variable access in sched_slice()



Access to local variable lw is aliased by usage of pointer load.
Access to pointer load in calc_delta_mine() happens when lw is
already out of scope.

[ Reported by static code analysis. ]

Signed-off-by: default avatarChristian Engelmayer <christian.engelmayer@frequentis.com>
LKML-Reference: <20090616103512.0c846e51@frequentis.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 348ec61e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment