]> git.baikalelectronics.ru Git - kernel.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>
Fri, 10 Mar 2023 08:33:03 +0000 (09:33 +0100)
commit2cf345fc52693a4eade92ee08074ad92003fa037
treea5627a4a6c4a8b6d64e5b053e39589291e22fc3a
parent54d735ef253fa83fe357e9fdcd9901289efb8ac0
crypto: rsa-pkcs1pad - Use akcipher_request_complete

[ Upstream commit 7de4838f27fccf20aafe1236e97105011a94c0b9 ]

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: e2aeff331bf5 ("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