projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccdb8a0
)
crypto: seqiv - Fix module unload/reload crash
author
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 27 May 2015 06:37:40 +0000
(14:37 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 28 May 2015 03:23:19 +0000
(11:23 +0800)
On module unload we weren't unregistering the seqniv template,
thus leading to a crash the next time someone walks the template
list.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/seqiv.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/seqiv.c
b/crypto/seqiv.c
index c0dba8f2f46899403f99fbdfdc28922d323cf132..23339744502563cc9ca586a137c3751b4f7932e0 100644
(file)
--- a/
crypto/seqiv.c
+++ b/
crypto/seqiv.c
@@
-874,6
+874,7
@@
out_undo_niv:
static void __exit seqiv_module_exit(void)
{
+ crypto_unregister_template(&seqniv_tmpl);
crypto_unregister_template(&seqiv_tmpl);
}