dm verity fec: fix block calculation
authorSami Tolvanen <samitolvanen@google.com>
Tue, 21 Jun 2016 18:02:42 +0000 (11:02 -0700)
committerMike Snitzer <snitzer@redhat.com>
Sat, 2 Jul 2016 03:29:08 +0000 (23:29 -0400)
commit602d1657c603eedd7379a8bcde1ad3a2972ecc5f
tree1e391897d0ad8cddcbe5cdb4544166e696762088
parent028b39e314dd8b4ab8d3ac401285db40ab1f39d8
dm verity fec: fix block calculation

do_div was replaced with div64_u64 at some point, causing a bug with
block calculation due to incompatible semantics of the two functions.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Fixes: a739ff3f543a ("dm verity: add support for forward error correction")
Cc: stable@vger.kernel.org # v4.5+
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-verity-fec.c
This page took 0.033425 seconds and 5 git commands to generate.