Spdk/lib/virtio
GangCao cebb63a7a7 lib/virtio: add the ctx NULL check before dereferencing it
Issue is found in the virtio_pci_scsi_dev_create() whose
error path is setting the vdev->ctx to NULL before the
destruct operation.

Change-Id: I4ab0fbe300f7413ad4503833088856aa3f4c0734
Signed-off-by: GangCao <gang.cao@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15676
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2022-11-30 08:50:48 +00:00
..
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00
spdk_virtio.map virtio/vfio_user: add virtio_blk device support 2022-09-29 19:42:56 +00:00
virtio_pci.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
virtio_vfio_user.c lib/virtio: add the ctx NULL check before dereferencing it 2022-11-30 08:50:48 +00:00
virtio_vhost_user.c lib/virtio: add the ctx NULL check before dereferencing it 2022-11-30 08:50:48 +00:00
virtio.c update Intel copyright notices 2022-11-10 08:28:53 +00:00