hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/crypto/ecdh.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* ECDH key-agreement protocol
23 *
34 * Copyright (c) 2016, Intel Corporation
45 * Authors: Salvator Benedetto <salvatore.benedetto@intel.com>
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License
8
- * as published by the Free Software Foundation; either version
9
- * 2 of the License, or (at your option) any later version.
106 */
117
128 #include <linux/module.h>
....@@ -130,7 +126,7 @@
130126
131127 /* fall through */
132128 free_all:
133
- kzfree(shared_secret);
129
+ kfree_sensitive(shared_secret);
134130 free_pubkey:
135131 kfree(public_key);
136132 return ret;
....@@ -168,7 +164,7 @@
168164 crypto_unregister_kpp(&ecdh);
169165 }
170166
171
-module_init(ecdh_init);
167
+subsys_initcall(ecdh_init);
172168 module_exit(ecdh_exit);
173169 MODULE_ALIAS_CRYPTO("ecdh");
174170 MODULE_LICENSE("GPL");