+7
−7
Loading
In nvmf_ctrlr_process_admin_cmd, we will get the subsystem id from the ctrlr and then decrement the sgroup's mgmt_io_outstanding for AER cases. However, the ctrlr may be null since the host sends admin commands before connect. To avoid nullptr reference, move the ctrlr check to the beginning of nvmf_ctrlr_process_admin_cmd. Fixes issue #3100. Change-Id: I743e7a740c9cf046e5de3e8d13aa303212e883a8 Signed-off-by:Jiewei Ke <jiewei@smartx.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19435 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Community-CI: Mellanox Build Bot