From: Anatol Pomozov Date: Sun, 22 Sep 2013 18:43:47 +0000 (-0600) Subject: cfq: explicitly use 64bit divide operation for 64bit arguments X-Git-Tag: v3.12-rc2~4^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3cff25f05f2ac29b2ee355e611b0657482f6f1d;p=pandora-kernel.git 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 Acked-by: Tejun Heo Signed-off-by: Jens Axboe --- Reading git-diff-tree failed