X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=crypto%2Fpcrypt.c;h=d0d954fe9d54f321f7f483c750836f6aa672779b;hb=refs%2Fheads%2Faccepted%2Ftizen_unified_x;hp=8c1d0ca412137f563ca6fdd1da2d35fbb80b15c8;hpb=d26a3a6ce7e02f9c056ad992bcd9624735022337;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/crypto/pcrypt.c b/crypto/pcrypt.c index 8c1d0ca..d0d954f 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; }