Skip to content

Commit

Permalink
Update cryptosk.c
Browse files Browse the repository at this point in the history
fix bug in switch
  • Loading branch information
srayuws authored Jan 1, 2024
1 parent 15f9a49 commit 78a24bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/cryptosk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 78a24bf

Please sign in to comment.