firmware/br-ext-chip-allwinner/board/v83x/kernel/patches/00000-crypto_pcrypt.c.patch

19 lines
513 B
Diff

diff -drupN a/crypto/pcrypt.c b/crypto/pcrypt.c
--- a/crypto/pcrypt.c 2018-08-06 17:23:04.000000000 +0300
+++ b/crypto/pcrypt.c 2022-06-12 05:28:14.000000000 +0300
@@ -262,6 +262,14 @@ static void pcrypt_free(struct aead_inst
kfree(inst);
}
+static void pcrypt_free(struct aead_instance *inst)
+{
+ struct pcrypt_instance_ctx *ctx = aead_instance_ctx(inst);
+
+ crypto_drop_aead(&ctx->spawn);
+ kfree(inst);
+}
+
static int pcrypt_init_instance(struct crypto_instance *inst,
struct crypto_alg *alg)
{