Loading
bdev/nvme: Fix crash due to NULL io_path
Before calling _bdev_nvme_reset_io(), bio->io_path will be set to NULL. An assert has already been added to guarentee it. But in _bdev_nvme_reset_io(), if error happens before setting bio->io_path, the caller will keep it NULL. For example, in bdev_nvme_freeze_bdev_channel_done, it will call bdev_nvme_reset_io_continue with NULL io_path. In this case, it will crash because prev_io_path is still NULL in _bdev_nvme_reset_io_continue. Change-Id: I97c28167322af5ad9df9c293f00d61b035e33268 Signed-off-by:Allen Zhu <allenzhu@nvidia.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/25222 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com>