diff options
author | Patrick McHardy <kaber@trash.net> | 2008-05-07 10:31:35 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-07-10 08:35:11 -0400 |
commit | 9e70a408ad66846bc98dc026efe0384ef68373fc (patch) | |
tree | 46d4367944e04354c075c64e562c343e9f6d6005 /drivers/crypto | |
parent | 7808f0738f9ac5cff05bd89ee457334b9a029b5c (diff) |
[HIFN]: Indicate asynchronous processing to crypto API
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>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/hifn_795x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c index e5c3bc4c4a1b..cce6e6f1baa5 100644 --- a/drivers/crypto/hifn_795x.c +++ b/drivers/crypto/hifn_795x.c | |||
@@ -2202,9 +2202,9 @@ static int hifn_setup_crypto(struct ablkcipher_request *req, u8 op, | |||
2202 | return err; | 2202 | return err; |
2203 | 2203 | ||
2204 | if (dev->started < HIFN_QUEUE_LENGTH && dev->queue.qlen) | 2204 | if (dev->started < HIFN_QUEUE_LENGTH && dev->queue.qlen) |
2205 | err = hifn_process_queue(dev); | 2205 | hifn_process_queue(dev); |
2206 | 2206 | ||
2207 | return err; | 2207 | return -EINPROGRESS; |
2208 | } | 2208 | } |
2209 | 2209 | ||
2210 | /* | 2210 | /* |