mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
crypto: inside-secure - get the backlog before dequeueing the request
Get the backlog before dequeuing the request otherwise we'll miss the first request in line. Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
c5acabd33c
commit
b1deb47ad1
1 changed files with 1 additions and 1 deletions
|
@ -431,8 +431,8 @@ void safexcel_dequeue(struct safexcel_crypto_priv *priv, int ring)
|
||||||
|
|
||||||
do {
|
do {
|
||||||
spin_lock_bh(&priv->ring[ring].queue_lock);
|
spin_lock_bh(&priv->ring[ring].queue_lock);
|
||||||
req = crypto_dequeue_request(&priv->ring[ring].queue);
|
|
||||||
backlog = crypto_get_backlog(&priv->ring[ring].queue);
|
backlog = crypto_get_backlog(&priv->ring[ring].queue);
|
||||||
|
req = crypto_dequeue_request(&priv->ring[ring].queue);
|
||||||
spin_unlock_bh(&priv->ring[ring].queue_lock);
|
spin_unlock_bh(&priv->ring[ring].queue_lock);
|
||||||
|
|
||||||
if (!req)
|
if (!req)
|
||||||
|
|
Loading…
Reference in a new issue