crypto: omap-sham - fix unaligned sg list handling
authorTero Kristo <t-kristo@ti.com>
Tue, 5 Nov 2019 14:01:07 +0000 (16:01 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Dec 2019 08:37:00 +0000 (16:37 +0800)
commit1cfd9f3f308fde70d14927f376cd61c2365819d0
tree3fedaea081a75bbb2bed5b91eb340b28ebd61c73
parent5d5f3eed29379b3edc499729bb6f8651a9848fe4
crypto: omap-sham - fix unaligned sg list handling

Currently the offset for unaligned sg lists is not handled properly
leading into wrong results with certain testmgr self tests. Fix the
handling to account for proper offset within the current sg list.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c