Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: stm32 - solve crc issue during unbind

Use the correct unregister_shashes function to
to remove the registered algo

Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Reviewed-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

lionel.debieve@st.com and committed by
Herbert Xu
0373d085 39177519

+1 -1
+1 -1
drivers/crypto/stm32/stm32_crc32.c
··· 296 296 list_del(&crc->list); 297 297 spin_unlock(&crc_list.lock); 298 298 299 - crypto_unregister_shash(algs); 299 + crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); 300 300 301 301 clk_disable_unprepare(crc->clk); 302 302