numam-spdk/app/nvmf_tgt
Daniel Verkamp 901aafe675 nvmf_tgt/rpc: check trtype and adrfam for NULL
If the NVMe library trtype and adrfam translation functions are passed
an unknown value, they may return NULL.  This shouldn't normally happen,
since any supported transport type or address family in the NVMe-oF
target should always be supported in the string lookup functions, but
add a fallback anyway to satisfy the static analyzer.

Change-Id: Icadf991d6742a2a759b5793253b71b4eabc763ed
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/383313
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2017-10-23 12:19:38 -04:00
..
.gitignore nvmf: add NVMe over Fabrics userspace target 2016-06-06 15:21:25 -07:00
conf.c nvmf: allow user to specify NSID via conf and RPC 2017-09-05 13:03:09 -04:00
Makefile rpc: Add a separate subsystem library 2017-06-16 13:10:26 -04:00
nvmf_main.c log: set print level when enabling tracelogs 2017-07-11 18:02:47 -04:00
nvmf_rpc.c nvmf_tgt/rpc: check trtype and adrfam for NULL 2017-10-23 12:19:38 -04:00
nvmf_tgt.c nvmf: Remove connect/disconnect_cb from subsystems 2017-08-30 15:07:22 -04:00
nvmf_tgt.h nvmf: allow user to specify NSID via conf and RPC 2017-09-05 13:03:09 -04:00