Spdk/module/bdev/virtio
Jin Yu 7ef6d8dd63 virtio: fix scsi 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: I1e8116283cfd810dfb050f8928f4ecd4bb2d815b
Signed-off-by: Jin Yu <jin.yu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3566
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
..
bdev_virtio_blk.c virtio: fix virtio hw double free issue 2020-07-30 08:43:23 +00:00
bdev_virtio_rpc.c module/bdev_virtio: remove spdk prefix from static functions. 2020-05-15 07:58:03 +00:00
bdev_virtio_scsi.c virtio: fix scsi double free issue 2020-07-30 08:43:23 +00:00
bdev_virtio.h mk: move the bdev modules under module directory. 2019-08-22 16:29:49 +00:00
Makefile mk/lib: add a check that major and minor version is set for libs. 2020-05-21 09:19:00 +00:00