dsched: Avoid integer overflow.
authorSascha Wildner <saw@online.de>
Tue, 20 Apr 2010 18:32:44 +0000 (21:32 +0300)
committerSascha Wildner <saw@online.de>
Tue, 20 Apr 2010 18:32:44 +0000 (21:32 +0300)
commit51a4bb9f7d116a7dda9cbe5ca9beef5918ab0376
treee622472952c43eed31cc1b26d62b99c79d1887c3
parent3a36b573dee586e6e7f54baf8c89ae4c5788ad98
dsched: Avoid integer overflow.

Multiplication of two 32 bit values can overflow the 32 bit result. Cast
one of the multiplicants to force 64 bit multiplication.

This fixes a lockup due to an infinite loop in the following while().

In-collaboration-with: aggelos
sys/dsched/fq/dsched_fq_core.c