OSDN Git Service

ANDROID: dm verity fec: fix RS block calculation
authorSami Tolvanen <samitolvanen@google.com>
Fri, 17 Jun 2016 18:22:03 +0000 (11:22 -0700)
committerSami Tolvanen <samitolvanen@google.com>
Fri, 17 Jun 2016 18:57:25 +0000 (11:57 -0700)
commit8f9576b38193b8eb32d94d17f02baab436c3580a
treed65f5cea42ef9b503f2a271ec1cc246b2eae373a
parentc4d8e3e8d2aa09f5826f517339baa7632f7873ea
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