git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75afb35
)
cfq: explicitly use 64bit divide operation for 64bit arguments
author
Anatol Pomozov
<anatol.pomozov@gmail.com>
Sun, 22 Sep 2013 18:43:47 +0000
(12:43 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Sun, 22 Sep 2013 18:43:47 +0000
(12:43 -0600)
'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>
block/cfq-iosched.c
patch
|
blob
|
history
diff --cc
block/cfq-iosched.c
Simple merge