Spdk/module
Shuhei Matsumoto 8c4c66ca04 bdev/nvme: Fix NULL pointer access by DTRACE when creating qpair
bdev_nvme_qpair() should use qpair instead of ctrlr_ch->qpair for DTRACE.
Otherwise, we get segmentation fault when enabling DTRACE.

Fixes issue #2440

The master branch fixed this bug in the commit d7f0a18 but it was in a
large patch series. So extract only the fix and apply it to the 22.01.x
branch. The 21.10.x branch also has this bug but 22.01.x is a long term
support release that will be supported for 1 year.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reported-by: Or Gerlitz <ogerlitz@nvidia.com>
Change-Id: I458ad62c410af6ce7c228857fa9de28b2cea6282
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12086
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
2022-06-30 13:32:31 -04:00
..
accel accel: Don't query the channel queue depth. Rely on -EBUSY 2022-06-30 13:32:31 -04:00
bdev bdev/nvme: Fix NULL pointer access by DTRACE when creating qpair 2022-06-30 13:32:31 -04:00
blob blob: use uint64_t for unmap and write_zeroes lba count 2022-06-30 13:32:26 -04:00
blobfs blobfs: check return value of strdup in blobfs_fuse_start() 2021-06-16 08:53:21 +00:00
env_dpdk so_ver: increase all major versions 2021-02-05 14:43:47 +00:00
event nvmf: Destroy subsystems before destroying poll groups 2022-06-30 13:32:31 -04:00
scheduler gscheduler: use current tsc for decision. 2022-06-30 13:32:29 -04:00
sock sock: Fix SPDK_ZEROCOPY do not work for IPV6 2022-06-30 13:32:28 -04:00
Makefile scheduler: create public API and subsystem for scheduler/governor 2021-09-07 07:33:03 +00:00