summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/armv8/rte_armv8_pmd_ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/crypto/armv8/rte_armv8_pmd_ops.c')
-rw-r--r--drivers/crypto/armv8/rte_armv8_pmd_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/armv8/rte_armv8_pmd_ops.c b/drivers/crypto/armv8/rte_armv8_pmd_ops.c
index 00297beb..63776b26 100644
--- a/drivers/crypto/armv8/rte_armv8_pmd_ops.c
+++ b/drivers/crypto/armv8/rte_armv8_pmd_ops.c
@@ -209,7 +209,7 @@ armv8_crypto_pmd_qp_set_unique_name(struct rte_cryptodev *dev,
n = snprintf(qp->name, sizeof(qp->name), "armv8_crypto_pmd_%u_qp_%u",
dev->data->dev_id, qp->id);
- if (n > sizeof(qp->name))
+ if (n >= sizeof(qp->name))
return -1;
return 0;