From 78a24bf16e38e57b9dbf11cdc158fe20a1b8084a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AF=9B=E6=AF=9B?= Date: Sun, 31 Dec 2023 21:10:18 -0800 Subject: [PATCH] Update cryptosk.c fix bug in switch --- examples/cryptosk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/cryptosk.c b/examples/cryptosk.c index 7d4799a6..c46e5233 100644 --- a/examples/cryptosk.c +++ b/examples/cryptosk.c @@ -46,7 +46,8 @@ static int test_skcipher_result(struct skcipher_def *sk, int rc) switch (rc) { case 0: break; - case -EINPROGRESS || -EBUSY: + case -EINPROGRESS: + case -EBUSY: rc = wait_for_completion_interruptible(&sk->result.completion); if (!rc && !sk->result.err) { reinit_completion(&sk->result.completion);