+11
−4
Loading
Previously, when connecting qpair, we allocated stats per qpair if poll group is not used or we set stats per poll group otherwise. Then when removing qpair from poll group, we cleared qpair->stats pointer. However, if qpair is still not completely disconnected after removing qpair from poll group, tqpair->stats is NULL and it causes a segmentation fault. Hence we set tqpair->stats to &g_dummy_stats instead of NULL. Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: Ice6469627ce8d4bf4567f57c304759206b6432f1 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10844 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>