mirror of https://github.com/OpenIPC/firmware.git
19 lines
513 B
Diff
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)
|
|
{
|