[PATCH 3/5] crypto: talitos: Fix off-by-one and use all hardware slots
Martin Hicks
mort at bork.org
Sat Feb 21 03:21:14 AEDT 2015
The submission count was off by one.
Signed-off-by: Martin Hicks <mort at bork.org>
---
drivers/crypto/talitos.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c
index 89cf4d5..7709805 100644
--- a/drivers/crypto/talitos.c
+++ b/drivers/crypto/talitos.c
@@ -2722,8 +2722,7 @@ static int talitos_probe(struct platform_device *ofdev)
goto err_out;
}
- atomic_set(&priv->chan[i].submit_count,
- -(priv->chfifo_len - 1));
+ atomic_set(&priv->chan[i].submit_count, -priv->chfifo_len);
}
dma_set_mask(dev, DMA_BIT_MASK(36));
--
1.7.10.4
More information about the Linuxppc-dev
mailing list