+9
−8
Loading
nvmf_subsystem_remove_listener RPC handler may fail to remove the listener (e.g. it doesn't exist) but in eror case we spdk_nvmf_transport_stop_listen_async and send an error response. In a completion callback passed to spdk_nvmf_transport_stop_listen_async we try to send a response again but the response handler had already been released and we dereference a NULL pointer. The fix is to skip spdk_nvmf_transport_stop_listen_async in error case and continue with the subsystem resuming. Fixes github issue #1821 Change-Id: I8d96b943cca25d9f95d19e8ea600242f019e6b21 Signed-off-by:Alexey Marchuk <alexeymar@mellanox.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6699 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
<dongx.yi@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>