From: Fan Zhang Date: Mon, 10 Apr 2017 14:59:34 +0000 (+0100) Subject: crypto/scheduler: fix capability update X-Git-Tag: spdx-start~3476 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7b46f62b8159dc5444cdcd48a46c6656b221510c;p=dpdk.git crypto/scheduler: fix capability update Fixes: 31439ee72b2c ("crypto/scheduler: add API implementations") Cc: stable@dpdk.org Signed-off-by: Fan Zhang --- 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)