ANDROID: dm verity fec: fix RS block calculation
authorSami Tolvanen <samitolvanen@google.com>
Fri, 17 Jun 2016 18:22:03 +0000 (11:22 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 11 Jul 2016 07:11:28 +0000 (12:41 +0530)
commitdfe3d7751ae5be130bf07ccde00ceda35d327fc4
tree13deae7e0cee0f946cc8e0edc392ba73c7d1df8c
parentfb8ebda5d99fe5f3aa39fd80828a0950d4c6fc47
ANDROID: dm verity fec: fix RS block calculation

A call to do_div was changed in Linux 4.5 to div64_u64 in
verity_fec_decode, which broke RS block calculation due to
incompatible semantics. This change fixes the computation.

Bug: 21893453
Change-Id: Idb88b901e0209c2cccc9c0796689f780592d58f9
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
(cherry picked from commit 879aac93eebcc2862d71afa9eca3a0c0f51b3b01)
drivers/md/dm-verity-fec.c