aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorMichal Nazarewicz <[email protected]>2013-11-10 19:42:01 +0000
committerIngo Molnar <[email protected]>2013-11-13 12:33:55 +0000
commit85b088e934b9943322bfe37077289ae60f1b3414 (patch)
tree2ad7a5376ecf31e10604794f98c8e8c63e42aeca /drivers/net/xen-netback/interface.c
parentsched: Optimize task_sched_runtime() (diff)
downloadkernel-85b088e934b9943322bfe37077289ae60f1b3414.tar.gz
kernel-85b088e934b9943322bfe37077289ae60f1b3414.zip
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 <[email protected]> Signed-off-by: Michal Nazarewicz <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions