aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/kasumi/rte_kasumi_pmd_ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/crypto/kasumi/rte_kasumi_pmd_ops.c')
-rw-r--r--drivers/crypto/kasumi/rte_kasumi_pmd_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/kasumi/rte_kasumi_pmd_ops.c b/drivers/crypto/kasumi/rte_kasumi_pmd_ops.c
index 8033114b..4da12f37 100644
--- a/drivers/crypto/kasumi/rte_kasumi_pmd_ops.c
+++ b/drivers/crypto/kasumi/rte_kasumi_pmd_ops.c
@@ -183,7 +183,7 @@ kasumi_pmd_qp_set_unique_name(struct rte_cryptodev *dev,
"kasumi_pmd_%u_qp_%u",
dev->data->dev_id, qp->id);
- if (n > sizeof(qp->name))
+ if (n >= sizeof(qp->name))
return -1;
return 0;