projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a00dce0
)
crypto: jitter - Use kvfree_sensitive() to fix Coccinelle warning
author
Thorsten Blum
<thorsten.blum@toblux.com>
Wed, 27 Mar 2024 22:25:09 +0000
(23:25 +0100)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 5 Apr 2024 07:46:33 +0000
(15:46 +0800)
Replace memzero_explicit() and kvfree() with kvfree_sensitive() to fix
the following Coccinelle/coccicheck warning reported by
kfree_sensitive.cocci:
WARNING opportunity for kfree_sensitive/kvfree_sensitive
Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/jitterentropy-kcapi.c
patch
|
blob
|
history
diff --git
a/crypto/jitterentropy-kcapi.c
b/crypto/jitterentropy-kcapi.c
index
76edbf8
..
c24d4ff
100644
(file)
--- a/
crypto/jitterentropy-kcapi.c
+++ b/
crypto/jitterentropy-kcapi.c
@@
-61,8
+61,7
@@
void *jent_kvzalloc(unsigned int len)
void jent_kvzfree(void *ptr, unsigned int len)
{
- memzero_explicit(ptr, len);
- kvfree(ptr);
+ kvfree_sensitive(ptr, len);
}
void *jent_zalloc(unsigned int len)