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>
Fri, 10 Mar 2023 08:39:16 +0000 (09:39 +0100)
commitb677cb4f0b6bdec8c5b5575a9d814d22779f2775
tree877fe265dcf06b91c1a0621a41937d99c53c36e1
parent99e8e6fd70a190cab5f5af9cd492eb6a664bdf5d
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