]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
crypto: inside-secure - wait for the request to complete if in the backlog
authorAntoine Tenart <antoine.tenart@bootlin.com>
Mon, 26 Feb 2018 13:45:12 +0000 (14:45 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:28:59 +0000 (12:28 +0200)
commitbd9ca373b8b69de9df878b37ee29ebb1cf5da0eb
tree2234a67423ec673521e112885baa43ff1ba77d4a
parentd26b5c80977d17ee38d7384801f0fabea5cc4071
crypto: inside-secure - wait for the request to complete if in the backlog

BugLink: http://bugs.launchpad.net/bugs/1783418
[ Upstream commit 4dc5475ae0375ea4f9283dfd9b2ddc91b20d4c4b ]

This patch updates the safexcel_hmac_init_pad() function to also wait
for completion when the digest return code is -EBUSY, as it would mean
the request is in the backlog to be processed later.

Fixes: 1b44c5a60c13 ("crypto: inside-secure - add SafeXcel EIP197 crypto engine driver")
Suggested-by: Ofer Heifetz <oferh@marvell.com>
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/crypto/inside-secure/safexcel_hash.c