numam-spdk/lib
Weiguo Li 30af49f77d nvmf: avoid a null dereference before null check
We do the null check for 'fc_req', but already dereferenced it
before the check. Swap their position to avoid null dereference.

Fixes issue #2395.

Signed-off-by: Weiguo Li <liwg06@foxmail.com>
Change-Id: I33b9e6b51b54f6ada9c072cf7ab0acda2622472f
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11721
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
2022-02-24 08:31:28 +00:00
..
accel so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
bdev bdev: move parts of _bdev_io_unset_bounce_buf() 2022-02-18 14:54:22 +00:00
blob blob: remove unused inline functions 2022-02-17 17:08:37 +00:00
blobfs so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
conf so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
dma so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
env_dpdk env_dpdk: unlink hugepages if shm_id is not specified 2022-02-18 14:56:54 +00:00
env_ocf spelling: lib 2021-12-03 08:12:55 +00:00
event event/app_rpc: Fix segmenation fault for scheduler is NULL. 2022-02-23 02:34:41 +00:00
ftl so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
idxd idxd: zero out batch element descriptors before each use 2022-02-10 22:50:47 +00:00
init so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
ioat so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
iscsi so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
json so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
jsonrpc so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
log so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
lvol lvol: finish initial iteration even if blob has no name 2022-02-03 19:43:35 +00:00
nbd so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
notify so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
nvme nvme: allocate extra request for fabrics connect 2022-02-14 15:29:39 +00:00
nvmf nvmf: avoid a null dereference before null check 2022-02-24 08:31:28 +00:00
rdma so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
reduce so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
rocksdb rocksdb: fix thread name typo 2021-09-03 08:08:20 +00:00
rpc so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
scsi thread: add spdk_thread_exec_msg() 2022-02-23 10:06:49 +00:00
sock so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
thread thread: fix double unlock in spdk_io_device_register 2022-02-17 17:10:31 +00:00
trace so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
trace_parser so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
ut_mock so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
util util/dif: check metadata buffer in spdk_dix_verify() 2022-02-10 22:41:26 +00:00
vfio_user so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
vhost lib/vhost: separate out rte_vhost code from vhost 2022-02-04 21:57:42 +00:00
virtio so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
vmd so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
Makefile lib/trace_parser: add trace_parser library stubs 2021-09-29 08:57:58 +00:00