+1
−7
Loading
ops_pool list is already initialized in spdk_idxd_get_channel(), called before _dsa_alloc_batches(). There is no need to initialize it again, especially not in error path of allocating batches. Meanwhile chan->desc_base and chan->base_ops are allocated and properly freed in the spdk_idxd_get_channel(), even if batch allocation fails. With no need for any of the above, just return early with ENOMEM. Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I6a72c7437183086b19508c85f184741a8d329dbe Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22855 Reviewed-by:
Jim Harris <jim.harris@samsung.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot