+20
−6
Loading
Before destroying poller, check again whether it has been removed, When conducting a network fault test, i encountered segmentation fault: If the creation of rpoller fails, nvmf_rdma_poller_destroy will be called immediately to destroy it in _nvmf_rdma_register_poller_in_group function. However, if a network card failure is detected and _nvmf_rdma_remove_poller_in_group is called to delete this rpoller, it will lead to illegal memory access. Fixes issue #3662 Change-Id: I126e70f6c1b95a5163ed15ccda35e1922b2e9b38 Signed-off-by:Yankun Li <yankun@staff.sina.com> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/25948 Reviewed-by:
Jim Harris <jim.harris@nvidia.com> Reviewed-by:
GangCao <gang.cao@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Tested-by:
SPDK Automated Test System <spdkbot@gmail.com>