Thread (32 messages) 32 messages, 4 authors, 2015-09-18

[PATCH 2/8] crypto: rsa - check status returned from crypto_unregister_akcipher

flat view
STALE4061d

From: Tadeusz Struk <hidden>
Date: 2015-09-09 16:17:06
Subsystem: asymmetric keys - rsa, crypto api, the rest · Maintainers: Lukas Wunner, Ignat Korchagin, Herbert Xu, "David S. Miller", Linus Torvalds

Add status check returned from crypto_unregister_akcipher function.

Signed-off-by: Tadeusz Struk <redacted>
---
 crypto/rsa.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/rsa.c b/crypto/rsa.c
index 466003e..93feae2 100644
--- a/crypto/rsa.c
+++ b/crypto/rsa.c
@@ -329,7 +329,7 @@ static int rsa_init(void)
 
 static void rsa_exit(void)
 {
-	crypto_unregister_akcipher(&rsa);
+	WARN_ON(crypto_unregister_akcipher(&rsa));
 }
 
 module_init(rsa_init);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help