summaryrefslogtreecommitdiff
path: root/crypto/lrw.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2020-05-19 15:50:34 +0200
committerThomas Gleixner <tglx@linutronix.de>2020-05-19 15:50:34 +0200
commit47fe8e96662c13d7c1331f9ab5cd79cff8cc1946 (patch)
treef9e3701a8918cef843313debe25e7d65ec04c473 /crypto/lrw.c
parent2f4c547d24c0bc67f1486ec20ca8bd34cf7e4560 (diff)
parent1509add362eb98340875abf85b448a5ecba2a29e (diff)
downloadlinux-crypto-47fe8e96662c13d7c1331f9ab5cd79cff8cc1946.tar.gz
linux-crypto-47fe8e96662c13d7c1331f9ab5cd79cff8cc1946.zip
Merge tag 'noinstr-lds-2020-05-19' into core/rcu
Get the noinstr section and annotation markers to base the RCU parts on.
Diffstat (limited to 'crypto/lrw.c')
-rw-r--r--crypto/lrw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/lrw.c b/crypto/lrw.c
index 376d7ed3..3c734b81 100644
--- a/crypto/lrw.c
+++ b/crypto/lrw.c
@@ -287,7 +287,7 @@ static void exit_tfm(struct crypto_skcipher *tfm)
crypto_free_skcipher(ctx->child);
}
-static void free(struct skcipher_instance *inst)
+static void free_inst(struct skcipher_instance *inst)
{
crypto_drop_skcipher(skcipher_instance_ctx(inst));
kfree(inst);
@@ -400,12 +400,12 @@ static int create(struct crypto_template *tmpl, struct rtattr **tb)
inst->alg.encrypt = encrypt;
inst->alg.decrypt = decrypt;
- inst->free = free;
+ inst->free = free_inst;
err = skcipher_register_instance(tmpl, inst);
if (err) {
err_free_inst:
- free(inst);
+ free_inst(inst);
}
return err;
}