accel/dpdk_cryptodev: Fix use of uninitialized variable
rc might be not initialized and it was not correct to
use it in this place.
Fixes 6b7cca1542
accel/dpdk_cryptodev: Handle OP_STATUS_SUCCESS
Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com>
Change-Id: Ifd2b3032afd6830bd851adb61f68ae4fa9621d33
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17656
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
fdec622361
commit
51d7df517c
@ -370,7 +370,7 @@ accel_dpdk_cryptodev_poller(void *args)
|
||||
|
||||
TAILQ_FOREACH_SAFE(task, &crypto_ch->completed_tasks, link, task_tmp) {
|
||||
TAILQ_REMOVE(&crypto_ch->completed_tasks, task, link);
|
||||
spdk_accel_task_complete(&task->base, rc);
|
||||
spdk_accel_task_complete(&task->base, 0);
|
||||
num_completed_tasks++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user