]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: inside-secure - EBUSY is not an error on async request
authorOfer Heifetz <oferh@marvell.com>
Thu, 14 Dec 2017 14:26:48 +0000 (15:26 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Dec 2017 09:03:30 +0000 (20:03 +1100)
commit59be00257fce0eddfb258c033166a9192dd87f37
treea637e50ccaeb69cfeaf16bf81562c6720b28a904
parent307337fecd5221371ece654b3477fdb1bd3bc12b
crypto: inside-secure - EBUSY is not an error on async request

When initializing the IVs crypto_ahash_update() is called, which at some
point will call crypto_enqueue_request(). This function can return
-EBUSY when no resource is available and the request is queued. Since
this is a valid case, -EBUSY shouldn't be treated as an error.

Signed-off-by: Ofer Heifetz <oferh@marvell.com>
[Antoine: commit message]
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel_hash.c