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:42:23 +0000 (07:42 +0200)
commit81cc2ef2677b32252d23b50e6cef7c994bf6ec03
tree9b0f3c955f64aaa25f31aaedf58d59857f1fac7b
parent2ff2cc768eb75b82b5df60d06e8316d4ea62c111
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