]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: rsa-pkcs1pad - Use akcipher_request_complete
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 31 Jan 2023 08:02:04 +0000 (16:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:26:37 +0000 (16:26 +0100)
commit4dc335fa7c00f1d80a9e0bfca941a41d29465ef0
tree10268c5a1390145eb311243c3c1db68c38494f55
parentb2fde8cb2a25125111f2144604e0e7c0ebcc4bba
crypto: rsa-pkcs1pad - Use akcipher_request_complete

[ Upstream commit 564cabc0ca0bdfa8f0fc1ae74b24d0a7554522c5 ]

Use the akcipher_request_complete helper instead of calling the
completion function directly.  In fact the previous code was buggy
in that EINPROGRESS was never passed back to the original caller.

Fixes: 3d5b1ecdea6f ("crypto: rsa - RSA padding algorithm")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
crypto/rsa-pkcs1pad.c