1c81d1afa2
When removing a listener, there's a small window when the listener is already freed, while the controllers that were created on that listener are still active. It happens, because the listener is removed before disconnecting its qpairs and in turn destroying the controllers. The ctrlr->listener pointer is now cleared when a listener is freed and its value is checked for NULL before each use. Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: Iace65a46eebc5972cc4ef0f1c1822ffc5d3e559e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9237 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ziye Yang <ziye.yang@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
ctrlr_bdev.c | ||
ctrlr_discovery.c | ||
ctrlr.c | ||
fc_ls.c | ||
fc.c | ||
Makefile | ||
nvmf_fc.h | ||
nvmf_internal.h | ||
nvmf_rpc.c | ||
nvmf.c | ||
rdma.c | ||
spdk_nvmf.map | ||
subsystem.c | ||
tcp.c | ||
transport.c | ||
transport.h | ||
vfio_user.c |