Hi.
On Wed, May 07, 2008 at 02:19:36PM +0200, Patrick McHardy ([EMAIL PROTECTED])
wrote:
> 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.
Then how to indicate that error occured?
What if we will return -EINPROGRESS in case of success and negative
errno otherwise?
> @@ -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;
Thus we are not able to return any error at all...
--
Evgeniy Polyakov
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html