| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Cryptographic API. |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * by IPCOMP (RFC 3173 & RFC 2394). |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Copyright (c) 2003 James Morris <jmorris@intercode.com.au> |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 10 | | - * under the terms of the GNU General Public License as published by the Free |
|---|
| 11 | | - * Software Foundation; either version 2 of the License, or (at your option) |
|---|
| 12 | | - * any later version. |
|---|
| 13 | 9 | * |
|---|
| 14 | 10 | * FIXME: deflate transforms will require up to a total of about 436k of kernel |
|---|
| 15 | 11 | * memory on i386 (390k for compression, the rest for decompression), as the |
|---|
| .. | .. |
|---|
| 167 | 163 | static void deflate_free_ctx(struct crypto_scomp *tfm, void *ctx) |
|---|
| 168 | 164 | { |
|---|
| 169 | 165 | __deflate_exit(ctx); |
|---|
| 170 | | - kzfree(ctx); |
|---|
| 166 | + kfree_sensitive(ctx); |
|---|
| 171 | 167 | } |
|---|
| 172 | 168 | |
|---|
| 173 | 169 | static void deflate_exit(struct crypto_tfm *tfm) |
|---|
| .. | .. |
|---|
| 279 | 275 | |
|---|
| 280 | 276 | static struct crypto_alg alg = { |
|---|
| 281 | 277 | .cra_name = "deflate", |
|---|
| 278 | + .cra_driver_name = "deflate-generic", |
|---|
| 282 | 279 | .cra_flags = CRYPTO_ALG_TYPE_COMPRESS, |
|---|
| 283 | 280 | .cra_ctxsize = sizeof(struct deflate_ctx), |
|---|
| 284 | 281 | .cra_module = THIS_MODULE, |
|---|
| .. | .. |
|---|
| 334 | 331 | crypto_unregister_scomps(scomp, ARRAY_SIZE(scomp)); |
|---|
| 335 | 332 | } |
|---|
| 336 | 333 | |
|---|
| 337 | | -module_init(deflate_mod_init); |
|---|
| 334 | +subsys_initcall(deflate_mod_init); |
|---|
| 338 | 335 | module_exit(deflate_mod_fini); |
|---|
| 339 | 336 | |
|---|
| 340 | 337 | MODULE_LICENSE("GPL"); |
|---|