[PATCH] dh key: Missing a blank line after declarations
Frank Werner-Krippendorf
mail at hb9fxq.ch
Fri Jun 12 20:34:58 UTC 2020
This patch fixes a "WARNING: Missing a blank line after declarations" issue found by checkpatch.pl
Signed-off-by: Frank Werner-Krippendorf <mail at hb9fxq.ch>
---
security/keys/dh.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/security/keys/dh.c b/security/keys/dh.c
index c4c629bb1c03..5515f51e62db 100644
--- a/security/keys/dh.c
+++ b/security/keys/dh.c
@@ -161,6 +161,7 @@ static int kdf_ctr(struct kdf_sdesc *sdesc, const u8 *src, unsigned int slen,
if (zlen && h) {
u8 tmpbuffer[32];
size_t chunk = min_t(size_t, zlen, sizeof(tmpbuffer));
+
memset(tmpbuffer, 0, chunk);
do {
--
2.20.1
More information about the Linux-security-module-archive
mailing list