diff --git a/drivers/crypto/scheduler/rte_cryptodev_scheduler.c b/drivers/crypto/scheduler/rte_cryptodev_scheduler.c index 3befb81cd0..31309c5620 100644 --- a/drivers/crypto/scheduler/rte_cryptodev_scheduler.c +++ b/drivers/crypto/scheduler/rte_cryptodev_scheduler.c @@ -64,7 +64,7 @@ sync_caps(struct rte_cryptodev_capabilities *caps, for (j = 0; j < nb_slave_caps; j++) { const struct rte_cryptodev_capabilities *s_cap = - &slave_caps[i]; + &slave_caps[j]; if (s_cap->op != cap->op || s_cap->sym.xform_type != cap->sym.xform_type)