Message ID | 20200612203458.13517-1-mail@hb9fxq.ch (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | dh key: Missing a blank line after declarations | expand |
On Fri, Jun 12, 2020 at 10:34:58PM +0200, Frank Werner-Krippendorf wrote: > This patch fixes a "WARNING: Missing a blank line after declarations" issue found by checkpatch.pl > > Signed-off-by: Frank Werner-Krippendorf <mail@hb9fxq.ch> Umh for which patch? /Jarkko
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 {
This patch fixes a "WARNING: Missing a blank line after declarations" issue found by checkpatch.pl Signed-off-by: Frank Werner-Krippendorf <mail@hb9fxq.ch> --- security/keys/dh.c | 1 + 1 file changed, 1 insertion(+)