crypto/scheduler: fix capability update
authorFan Zhang <roy.fan.zhang@intel.com>
Mon, 10 Apr 2017 14:59:34 +0000 (15:59 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 20 Apr 2017 09:32:45 +0000 (11:32 +0200)
Fixes: 31439ee72b2c ("crypto/scheduler: add API implementations")
Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
drivers/crypto/scheduler/rte_cryptodev_scheduler.c

index 3befb81..31309c5 100644 (file)
@@ -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)