Loading
vfio_user_pci: put close(device->fd) in cleanup.
These three goto cases are using device->fd, so put them in cleanup, it has no impact on vfio_user_dev_setup failed. Signed-off-by:yidong0635 <dongx.yi@intel.com> Change-Id: I28028dda2977cf8158e703afa5b8af38c48f3d85 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6922 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>