30af49f77d
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 |
||
---|---|---|
.. | ||
ctrlr_bdev.c | ||
ctrlr_discovery.c | ||
ctrlr.c | ||
fc_ls.c | ||
fc.c | ||
Makefile | ||
nvmf_fc.h | ||
nvmf_internal.h | ||
nvmf_rpc.c | ||
nvmf.c | ||
rdma.c | ||
spdk_nvmf.map | ||
subsystem.c | ||
tcp.c | ||
transport.c | ||
transport.h | ||
vfio_user.c |