+9
−7
Loading
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