diff options
author | Anatol Pomozov <anatol.pomozov@gmail.com> | 2013-09-22 20:43:47 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-09-22 20:43:47 +0200 |
commit | f3cff25f05f2ac29b2ee355e611b0657482f6f1d (patch) | |
tree | 8a06c59f0970a8bd4be2939792fc88ffddc39e62 /Documentation/mn10300 | |
parent | block: Add nr_bios to block_rq_remap tracepoint (diff) | |
download | linux-f3cff25f05f2ac29b2ee355e611b0657482f6f1d.tar.xz linux-f3cff25f05f2ac29b2ee355e611b0657482f6f1d.zip |
cfq: explicitly use 64bit divide operation for 64bit arguments
'samples' is 64bit operant, but do_div() second parameter is 32.
do_div silently truncates high 32 bits and calculated result
is invalid.
In case if low 32bit of 'samples' are zeros then do_div() produces
kernel crash.
Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Documentation/mn10300')
0 files changed, 0 insertions, 0 deletions