+8
−6
Loading
If we get back-to-back removals, the first removal could be pending removal in the SPDK device list. When callback happens for the second removal, we can't touch the rte dev_handle for that first device, because DPDK has already freed it. So use the removed flag on our spdk_pci_device structure to skip it and avoid dereferencing freed memory. While here, remove debug prints that were added specifically to triage this issue. Fixes issue #3599. Signed-off-by:Jim Harris <jim.harris@nvidia.com> Change-Id: I43f81145470f190a51c235ab512c1b9f419ba29e Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/25586 Reviewed-by:
Changpeng Liu <changpeliu@tencent.com> Tested-by:
SPDK Automated Test System <spdkbot@gmail.com> Reviewed-by:
Michael Haeuptle <michaelhaeuptle@gmail.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Mellanox Build Bot