Skip to content

Commit

Permalink
[HIFN]: Indicate asynchronous processing to crypto API
Browse files Browse the repository at this point in the history
    
hifn_setup_crypto() needs to return -EINPROGRESS on success to indicate
asynchronous processing to the crypto API. This also means it must not
return the errno code returned by hifn_process_queue(), if any.
    
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Patrick McHardy authored and Herbert Xu committed Jul 10, 2008
1 parent 7808f07 commit 9e70a40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/crypto/hifn_795x.c
Original file line number Diff line number Diff line change
Expand Up @@ -2202,9 +2202,9 @@ static int hifn_setup_crypto(struct ablkcipher_request *req, u8 op,
return err;

if (dev->started < HIFN_QUEUE_LENGTH && dev->queue.qlen)
err = hifn_process_queue(dev);
hifn_process_queue(dev);

return err;
return -EINPROGRESS;
}

/*
Expand Down

0 comments on commit 9e70a40

Please sign in to comment.