summaryrefslogtreecommitdiffstats
path: root/kernel/cpu.c
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2013-11-10 20:42:01 +0100
committerIngo Molnar <mingo@kernel.org>2013-11-13 13:33:55 +0100
commit85b088e934b9943322bfe37077289ae60f1b3414 (patch)
tree2ad7a5376ecf31e10604794f98c8e8c63e42aeca /kernel/cpu.c
parent911b2898b3c9fe0048e9485ad1629ed4fce330fd (diff)
downloadlinux-85b088e934b9943322bfe37077289ae60f1b3414.tar.bz2
sched/fair: Avoid integer overflow
sa->runnable_avg_sum is of type u32 but after shifting it by NICE_0_SHIFT bits it is promoted to u64. This of course makes no sense, since the result will never be more then 32-bit long. Casting sa->runnable_avg_sum to u64 before it is shifted, fixes this problem. Reviewed-by: Ben Segall <bsegall@google.com> Signed-off-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1384112521-25177-1-git-send-email-mpn@google.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/cpu.c')
0 files changed, 0 insertions, 0 deletions