]> git.baikalelectronics.ru Git - kernel.git/commit
sched: Fix out of scope variable access in sched_slice()
authorChristian Engelmayer <christian.engelmayer@frequentis.com>
Tue, 16 Jun 2009 08:35:12 +0000 (10:35 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 17 Jun 2009 16:37:54 +0000 (18:37 +0200)
commit9d6878a0abb400e907d05bad181e705d6a25fd00
treec65dbf477871ea843241055cda84b2448aee0c71
parent8aba97a1664dc3667180351df4401df4e7a1ceb2
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: Christian Engelmayer <christian.engelmayer@frequentis.com>
LKML-Reference: <20090616103512.0c846e51@frequentis.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c