Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1686520 > unrolled thread

[PATCH 2/3] crypto: stm32 - solve crc issue during unbind

Started byLionel Debieve <lionel.debieve@st.com>
First post2017-07-13 15:10 +0200
Last post2017-07-13 15:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/3] crypto: stm32 - solve crc issue during unbind Lionel Debieve <lionel.debieve@st.com> - 2017-07-13 15:10 +0200

#1686520 — [PATCH 2/3] crypto: stm32 - solve crc issue during unbind

FromLionel Debieve <lionel.debieve@st.com>
Date2017-07-13 15:10 +0200
Subject[PATCH 2/3] crypto: stm32 - solve crc issue during unbind
Message-ID<u2M2u-62P-13@gated-at.bofh.it>
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>
---
 drivers/crypto/stm32/stm32_crc32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/stm32/stm32_crc32.c b/drivers/crypto/stm32/stm32_crc32.c
index 04d2f4b..090582b 100644
--- a/drivers/crypto/stm32/stm32_crc32.c
+++ b/drivers/crypto/stm32/stm32_crc32.c
@@ -296,7 +296,7 @@ static int stm32_crc_remove(struct platform_device *pdev)
 	list_del(&crc->list);
 	spin_unlock(&crc_list.lock);
 
-	crypto_unregister_shash(algs);
+	crypto_unregister_shashes(algs, ARRAY_SIZE(algs));
 
 	clk_disable_unprepare(crc->clk);
 
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web