]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: algif_aead - Do not set MAY_BACKLOG on the async path
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 31 Jul 2020 07:03:50 +0000 (17:03 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Aug 2020 04:45:27 +0000 (14:45 +1000)
commitf4f48fc025eb362a1cc41d49dec7c02103de613a
tree538a0d1241b79ed6a921c5d43fa1cf45c1ba5b25
parentb30c1e876482c5a7353e6cb24fc898b62bea11f4
crypto: algif_aead - Do not set MAY_BACKLOG on the async path

The async path cannot use MAY_BACKLOG because it is not meant to
block, which is what MAY_BACKLOG does.  On the other hand, both
the sync and async paths can make use of MAY_SLEEP.

Fixes: a65fed8be3a1 ("crypto: af_alg - add async support to...")
Cc: <stable@vger.kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algif_aead.c