numam-spdk/lib/virtio
Jin Yu 79c7744efb virtio: fix virtio hw double free issue
During virtio_pci_dev_probe, if enum_cb fails, hw needs
to be released. But in bdev_virtio, if vdev fails after
initialization, it will enter the bdev destruction process
which call the modern_destruct_dev function and hw will
be released during the process. So we will encounter the
problem of hw being released twice.

Change-Id: Ifba35284c072355ba0e10428b597a1894d32d59e
Signed-off-by: Jin Yu <jin.yu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3564
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2020-07-30 08:43:23 +00:00
..
Makefile lib/makefile: move vhost_user.c into lib/virtio directory 2020-06-09 07:37:43 +00:00
spdk_virtio.map lib/virtio: add a map file. 2020-05-14 10:37:14 +00:00
vhost_user.c lib/makefile: move vhost_user.c into lib/virtio directory 2020-06-09 07:37:43 +00:00
vhost_user.h lib/makefile: move vhost_user.c into lib/virtio directory 2020-06-09 07:37:43 +00:00
virtio_pci.c virtio: fix virtio hw double free issue 2020-07-30 08:43:23 +00:00
virtio_user.c lib/makefile: move vhost_user.c into lib/virtio directory 2020-06-09 07:37:43 +00:00
virtio.c virtio: remove unnecessary included header file 2020-01-10 08:45:45 +00:00