X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=crypto%2Fpcrypt.c;h=d0d954fe9d54f321f7f483c750836f6aa672779b;hb=9686e7f59b142095ac6ad0763312ec68fc34c51a;hp=8c1d0ca412137f563ca6fdd1da2d35fbb80b15c8;hpb=cb7f5b41f8341148050fe63e27cf52aa4f1519ad;p=linux-block.git diff --git a/crypto/pcrypt.c b/crypto/pcrypt.c index 8c1d0ca41213..d0d954fe9d54 100644 --- a/crypto/pcrypt.c +++ b/crypto/pcrypt.c @@ -117,6 +117,8 @@ static int pcrypt_aead_encrypt(struct aead_request *req) err = padata_do_parallel(ictx->psenc, padata, &ctx->cb_cpu); if (!err) return -EINPROGRESS; + if (err == -EBUSY) + return -EAGAIN; return err; } @@ -164,6 +166,8 @@ static int pcrypt_aead_decrypt(struct aead_request *req) err = padata_do_parallel(ictx->psdec, padata, &ctx->cb_cpu); if (!err) return -EINPROGRESS; + if (err == -EBUSY) + return -EAGAIN; return err; }