Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/crypto/aes Ensure aes_ccm module init runs after aes mod...



details:   https://anonhg.NetBSD.org/src/rev/b3299836c4fe
branches:  trunk
changeset: 936345:b3299836c4fe
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Jul 26 04:44:47 2020 +0000

description:
Ensure aes_ccm module init runs after aes module init.

Otherwise the AES implementation might not be selected early enough.

diffstat:

 sys/crypto/aes/aes_ccm.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 68d38b0f7303 -r b3299836c4fe sys/crypto/aes/aes_ccm.c
--- a/sys/crypto/aes/aes_ccm.c  Sun Jul 26 04:25:49 2020 +0000
+++ b/sys/crypto/aes/aes_ccm.c  Sun Jul 26 04:44:47 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aes_ccm.c,v 1.2 2020/07/25 22:27:53 riastradh Exp $    */
+/*     $NetBSD: aes_ccm.c,v 1.3 2020/07/26 04:44:47 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: aes_ccm.c,v 1.2 2020/07/25 22:27:53 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: aes_ccm.c,v 1.3 2020/07/26 04:44:47 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -588,7 +588,7 @@
 /* XXX provisional hack */
 #include <sys/module.h>
 
-MODULE(MODULE_CLASS_MISC, aes_ccm, NULL);
+MODULE(MODULE_CLASS_MISC, aes_ccm, "aes");
 
 static int
 aes_ccm_modcmd(modcmd_t cmd, void *opaque)



Home | Main Index | Thread Index | Old Index