crypto/aesni_mb: fix zero burst dequeue
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 14 Jul 2017 06:48:47 +0000 (07:48 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 19 Jul 2017 11:10:41 +0000 (14:10 +0300)
commit0b4b1e1b88edab32a0cdfe706c800c0419c3a16a
tree55483dd0f262930adfb2e2c04b9bf102f2727e17
parent9333cfba3bee4e1470344422cfb6531b8e09fceb
crypto/aesni_mb: fix zero burst dequeue

In the unlikely scenario that an application
calls rte_cryptodev_dequeue_burst with nb_ops = 0,
there was a job leak, as a job would be created
but would not be populated, as no operation is passed.

Fixes: 0f548b50a160 ("crypto/aesni_mb: process crypto op on dequeue")
Cc: stable@dpdk.org
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c