]> git.hungrycats.org Git - linux/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:00:14 +0000 (07:00 +0200)
commitd7e274720ad901bcf7c26f8577e4e54deff9fb0c
tree350b5d484d8a211a41cc72c380a86a0cc1957be2
parenta7439186c9d5104d35de0f15a24339c15877940f
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