aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/talitos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c
index 16c97caa17a..c3df3b1df85 100644
--- a/drivers/crypto/talitos.c
+++ b/drivers/crypto/talitos.c
@@ -1598,7 +1598,7 @@ static int talitos_probe(struct of_device *ofdev,
1598 goto err_out; 1598 goto err_out;
1599 } 1599 }
1600 for (i = 0; i < priv->num_channels; i++) 1600 for (i = 0; i < priv->num_channels; i++)
1601 atomic_set(&priv->submit_count[i], -priv->chfifo_len); 1601 atomic_set(&priv->submit_count[i], -(priv->chfifo_len - 1));
1602 1602
1603 priv->head = kzalloc(sizeof(int) * priv->num_channels, GFP_KERNEL); 1603 priv->head = kzalloc(sizeof(int) * priv->num_channels, GFP_KERNEL);
1604 priv->tail = kzalloc(sizeof(int) * priv->num_channels, GFP_KERNEL); 1604 priv->tail = kzalloc(sizeof(int) * priv->num_channels, GFP_KERNEL);