mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
crypto: sa2ul - Return crypto_aead_setkey to transfer the error
[ Upstream commitce852f1308
] Return crypto_aead_setkey() in order to transfer the error if it fails. Fixes:d2c8ac187f
("crypto: sa2ul - Add AEAD algorithm support") Signed-off-by: Chen Ni <nichen@iscas.ac.cn> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
c4c54fce9e
commit
b94f7e34d6
1 changed files with 1 additions and 2 deletions
|
@ -1869,9 +1869,8 @@ static int sa_aead_setkey(struct crypto_aead *authenc,
|
|||
crypto_aead_set_flags(ctx->fallback.aead,
|
||||
crypto_aead_get_flags(authenc) &
|
||||
CRYPTO_TFM_REQ_MASK);
|
||||
crypto_aead_setkey(ctx->fallback.aead, key, keylen);
|
||||
|
||||
return 0;
|
||||
return crypto_aead_setkey(ctx->fallback.aead, key, keylen);
|
||||
}
|
||||
|
||||
static int sa_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize)
|
||||
|
|
Loading…
Reference in a new issue