[dpdk-stable] [PATCH] examples/l2fwd-crypto: fix wrong array index
Pablo de Lara
pablo.de.lara.guarch at intel.com
Tue Apr 25 17:32:36 CEST 2017
Fixes: c0f87eb5252b ("cryptodev: change burst API to be crypto op oriented")
Cc: stable at dpdk.org
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>
---
examples/l2fwd-crypto/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c
index d7db55d..9492193 100644
--- a/examples/l2fwd-crypto/main.c
+++ b/examples/l2fwd-crypto/main.c
@@ -788,7 +788,7 @@ l2fwd_main_loop(struct l2fwd_crypto_options *options)
ops_burst, nb_rx) !=
nb_rx) {
for (j = 0; j < nb_rx; j++)
- rte_pktmbuf_free(pkts_burst[i]);
+ rte_pktmbuf_free(pkts_burst[j]);
nb_rx = 0;
}
--
2.7.4
More information about the stable
mailing list