| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Asynchronous Compression operations |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2016, Intel Corporation |
|---|
| 5 | 6 | * Authors: Weigang Li <weigang.li@intel.com> |
|---|
| 6 | 7 | * 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 | | - * |
|---|
| 13 | 8 | */ |
|---|
| 14 | 9 | #ifndef _CRYPTO_ACOMP_INT_H |
|---|
| 15 | 10 | #define _CRYPTO_ACOMP_INT_H |
|---|
| .. | .. |
|---|
| 51 | 46 | |
|---|
| 52 | 47 | static inline void __acomp_request_free(struct acomp_req *req) |
|---|
| 53 | 48 | { |
|---|
| 54 | | - kzfree(req); |
|---|
| 49 | + kfree_sensitive(req); |
|---|
| 55 | 50 | } |
|---|
| 56 | 51 | |
|---|
| 57 | 52 | /** |
|---|
| .. | .. |
|---|
| 73 | 68 | * compression algorithm |
|---|
| 74 | 69 | * |
|---|
| 75 | 70 | * @alg: algorithm definition |
|---|
| 76 | | - * |
|---|
| 77 | | - * Return: zero on success; error code in case of error |
|---|
| 78 | 71 | */ |
|---|
| 79 | | -int crypto_unregister_acomp(struct acomp_alg *alg); |
|---|
| 72 | +void crypto_unregister_acomp(struct acomp_alg *alg); |
|---|
| 80 | 73 | |
|---|
| 81 | 74 | int crypto_register_acomps(struct acomp_alg *algs, int count); |
|---|
| 82 | 75 | void crypto_unregister_acomps(struct acomp_alg *algs, int count); |
|---|