crypto: stm32/crc32 - fix ext4 chksum BUG_ON()
authorNicolas Toromanoff <nicolas.toromanoff@st.com>
Tue, 12 May 2020 14:11:09 +0000 (16:11 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 May 2020 14:08:20 +0000 (00:08 +1000)
commit49c2c082e00e0bc4f5cbb7c21c7f0f873b35ab09
treefb9b0fc380495470e512e638d4ce5c7255bf8234
parent2c959a33f8630a008c7047e90312ba10ea2c78b7
crypto: stm32/crc32 - fix ext4 chksum BUG_ON()

Allow use of crc_update without prior call to crc_init.
And change (and fix) driver to use CRC device even on unaligned buffers.

Fixes: b51dbe90912a ("crypto: stm32 - Support for STM32 CRC32 crypto module")
Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/stm32/stm32-crc32.c