Files
linux/block
Anatol Pomozov 85f58908c0 cfq: explicitly use 64bit divide operation for 64bit arguments
commit f3cff25f05 upstream.

'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>
Cc: Jonghwan Choi <jhbird.choi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-10-01 09:17:48 -07:00
..
2012-12-06 14:30:58 +01:00
2012-01-11 16:29:31 +01:00
2013-02-22 10:42:45 +01:00