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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 13 Feb 2023 10:34:49 +0000 (18:34 +0800)
commit564cabc0ca0bdfa8f0fc1ae74b24d0a7554522c5
treecb5fafe1bbb89c08300239307d7f6f7b5cd90afa
parent6909823d47c17cba84e9244d04050b5db8d53789
crypto: rsa-pkcs1pad - Use akcipher_request_complete

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>
crypto/rsa-pkcs1pad.c