projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'tomoyo-pr-20200128' of git://git.osdn.net/gitroot/tomoyo/tomoyo-test1
[linux-2.6-microblaze.git]
/
crypto
/
cfb.c
diff --git
a/crypto/cfb.c
b/crypto/cfb.c
index
7b68fbb
..
4e5219b
100644
(file)
--- a/
crypto/cfb.c
+++ b/
crypto/cfb.c
@@
-203,10
+203,12
@@
static int crypto_cfb_create(struct crypto_template *tmpl, struct rtattr **tb)
struct crypto_alg *alg;
int err;
struct crypto_alg *alg;
int err;
- inst = skcipher_alloc_instance_simple(tmpl, tb
, &alg
);
+ inst = skcipher_alloc_instance_simple(tmpl, tb);
if (IS_ERR(inst))
return PTR_ERR(inst);
if (IS_ERR(inst))
return PTR_ERR(inst);
+ alg = skcipher_ialg_simple(inst);
+
/* CFB mode is a stream cipher. */
inst->alg.base.cra_blocksize = 1;
/* CFB mode is a stream cipher. */
inst->alg.base.cra_blocksize = 1;
@@
-223,7
+225,6
@@
static int crypto_cfb_create(struct crypto_template *tmpl, struct rtattr **tb)
if (err)
inst->free(inst);
if (err)
inst->free(inst);
- crypto_mod_put(alg);
return err;
}
return err;
}