Spdk/lib/idxd
Zhiqiang Liu 14ad24c7b8 idxd: fix one memleak problem in spdk_idxd_get_channel()
In spdk_idxd_get_channel(), if chan->batch_base is allocated
faild, we should free chan before returning NULL.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Change-Id: Ia652c334aead592429c1171da73d67160879686d
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8301
Community-CI: Mellanox Build Bot
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2021-06-16 09:00:48 +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 one memleak problem in spdk_idxd_get_channel() 2021-06-16 09:00:48 +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