]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: atmel - only treat EBUSY as transient if backlog
authorGilad Ben-Yossef <gilad@benyossef.com>
Wed, 28 Jun 2017 07:22:03 +0000 (10:22 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jul 2017 05:44:58 +0000 (07:44 +0200)
commitfc43f0935035008a65e1a8ed50c99679dce65377
tree0853d5244ea643865dfb59ba9b0b88b5d2892f0a
parentd05fbdbe6d1c2b00f1d2c3010a4a4c710fb4097a
crypto: atmel - only treat EBUSY as transient if backlog

commit 1606043f214f912a52195293614935811a6e3e53 upstream.

The Atmel SHA driver was treating -EBUSY as indication of queueing
to backlog without checking that backlog is enabled for the request.

Fix it by checking request flags.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/atmel-sha.c