svn commit: r327866 - head/sys/crypto/aesni
Conrad Meyer
cem at FreeBSD.org
Fri Jan 12 06:40:59 UTC 2018
Author: cem
Date: Fri Jan 12 06:40:58 2018
New Revision: 327866
URL: https://svnweb.freebsd.org/changeset/base/327866
Log:
aesni(4): Quiesce spurious GCC 6.3.0 -Wmaybe-uninitialized warnings
Always initialize some variables GCC warns about. They are initialized in
every path where they are used, but GCC doesn't know that.
Sponsored by: Dell EMC Isilon
Modified:
head/sys/crypto/aesni/aesni.c
Modified: head/sys/crypto/aesni/aesni.c
==============================================================================
--- head/sys/crypto/aesni/aesni.c Fri Jan 12 06:37:53 2018 (r327865)
+++ head/sys/crypto/aesni/aesni.c Fri Jan 12 06:40:58 2018 (r327866)
@@ -724,6 +724,8 @@ aesni_cipher_process(struct aesni_session *ses, struct
return (EINVAL);
}
+ ctx = NULL;
+ ctxidx = 0;
error = 0;
kt = is_fpu_kern_thread(0);
if (!kt) {
@@ -775,6 +777,9 @@ aesni_cipher_crypt(struct aesni_session *ses, struct c
KASSERT(ses->algo != CRYPTO_AES_NIST_GCM_16 || authcrd != NULL,
("AES_NIST_GCM_16 must include MAC descriptor"));
+
+ ivlen = 0;
+ authbuf = NULL;
buf = aesni_cipher_alloc(enccrd, crp, &allocated);
if (buf == NULL)
More information about the svn-src-all
mailing list