Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 455e3389 authored by Markku Kylanpaa's avatar Markku Kylanpaa Committed by Herbert Xu
Browse files

crypto: omap-sham - fix concurrent sha1 calculations



SHA1 accelerator can also be busy. Add -EBUSY status return option and
return busy status from omap_sham_finup().

Signed-off-by: default avatarMarkku Kylanpaa <ext-markku.kylanpaa@nokia.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a49e490c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -835,7 +835,7 @@ static int omap_sham_finup(struct ahash_request *req)
	ctx->flags |= FLAGS_FINUP;

	err1 = omap_sham_update(req);
	if (err1 == -EINPROGRESS)
	if (err1 == -EINPROGRESS || err1 == -EBUSY)
		return err1;
	/*
	 * final() has to be always called to cleanup resources