Skip to contentSkip to conversation

public_key: Don't erroneously call akcipher_verify

PATCH New Denis Kenzior 1 participant 1 message Aug 20, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 public_key: Don't erroneously call akcipher_verify

The code in software_key_eds_op was already calling the relevant akcipher_* operation. So the call to akcipher_verify was an error (likely due to a copy-paste oversight).

Fixes 92daec927531 KEYS: Implement encrypt, decrypt and sign for software asymmetric key
---
 crypto/asymmetric_keys/public_key.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/asymmetric_keys/public_key.c +1 -1
index f774d34779a5..f5d85b47fcc6 100644
@@ -206,7 +206,7 @@ static int software_key_eds_op(struct kernel_pkey_params *params,
 		BUG();
 	}
 
-	ret = crypto_wait_req(crypto_akcipher_verify(req), &cwait);
+	ret = crypto_wait_req(ret, &cwait);
 	if (ret = 0)
 		ret = req->dst_len;
 
Signature · 1 line
2.16.1