Spdk/lib/idxd
Zhiqiang Liu e4746ad40f idxd: fix memleak problem in spdk_idxd_configure_chan()
In spdk_idxd_configure_chan(), if memory allocation fails in
TAILQ_FOREACH() {} code range, we will goto err_user_comp and
err_user_desc tag, in which we donot free chan->completions
and confused batch->user_completions with chan->completions.
Memleak problem and double free problem may occurs.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Change-Id: I0e588a35184d97cab0ea6b6c013ca8b3342f940a
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8432
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ziye Yang <ziye.yang@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Community-CI: Mellanox Build Bot
2021-06-28 16:30:06 +00:00
..
idxd_spec.h idxd: Update the definition of register according to the new spec. 2021-04-15 04:35:09 +00:00
idxd_user.c idxd: Do not present pci device info in accel_engine_idxd.c module 2021-05-10 11:12:40 +00:00
idxd.c idxd: fix memleak problem in spdk_idxd_configure_chan() 2021-06-28 16:30:06 +00:00
idxd.h lib/idxd: move the crc destination * from the desc to comp record 2021-05-22 18:42:35 +00:00
Makefile idxd: update the major so version for libspdk_idxd 2021-05-07 15:03:44 +00:00
spdk_idxd.map lib/idxd: add support for batching copy + crc32c 2021-06-09 07:26:00 +00:00