hc
2024-02-20 e636c8d336489bf3eed5878299e6cc045bbad077
kernel/include/crypto/internal/acompress.h
....@@ -1,15 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Asynchronous Compression operations
34 *
45 * Copyright (c) 2016, Intel Corporation
56 * Authors: Weigang Li <weigang.li@intel.com>
67 * Giovanni Cabiddu <giovanni.cabiddu@intel.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms of the GNU General Public License as published by the Free
10
- * Software Foundation; either version 2 of the License, or (at your option)
11
- * any later version.
12
- *
138 */
149 #ifndef _CRYPTO_ACOMP_INT_H
1510 #define _CRYPTO_ACOMP_INT_H
....@@ -51,7 +46,7 @@
5146
5247 static inline void __acomp_request_free(struct acomp_req *req)
5348 {
54
- kzfree(req);
49
+ kfree_sensitive(req);
5550 }
5651
5752 /**
....@@ -73,10 +68,8 @@
7368 * compression algorithm
7469 *
7570 * @alg: algorithm definition
76
- *
77
- * Return: zero on success; error code in case of error
7871 */
79
-int crypto_unregister_acomp(struct acomp_alg *alg);
72
+void crypto_unregister_acomp(struct acomp_alg *alg);
8073
8174 int crypto_register_acomps(struct acomp_alg *algs, int count);
8275 void crypto_unregister_acomps(struct acomp_alg *algs, int count);