Spdk/lib/nvme
Daniel Verkamp 3fa7c33ac1 nvme: require trid to be valid in nvme_ctrlr_probe
This is an internal NVMe driver function, so we don't need to allow for
the case where trid is NULL.  All callers already passed an address of a
local variable except the unit tests, which can be trivially fixed.

Fixes a static analyzer warning about trid being dereferenced in
nvme_transport_ctrlr_construct() before being checked for NULL in the
caller.

Change-Id: I2bfeb5c92a302093b7c7f2949adcd18baa11855a
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/408395
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-04-19 17:51:14 -04:00
..
Makefile build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
nvme_ctrlr_cmd.c nvme: use AER configuation structure when starting controller 2018-04-10 15:43:38 -04:00
nvme_ctrlr.c nvme: improve error messages in set_num_qpairs 2018-04-16 12:31:26 -04:00
nvme_internal.h nvme: make timeout function per process 2018-04-13 12:30:51 -04:00
nvme_ns_cmd.c nvme: free children recursively 2018-02-23 15:35:32 -05:00
nvme_ns.c nvme: add spdk_nvme_ns_get_uuid() function 2018-03-27 02:43:46 -04:00
nvme_pcie.c nvme: Don't expose admin qpair in timeout callbacks 2018-04-19 15:48:36 -04:00
nvme_qpair.c scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
nvme_quirks.c nvme: add debug logs for matched quirks 2018-02-23 10:07:39 -05:00
nvme_rdma.c nvme: Rmove all uses of strncpy 2018-04-12 13:45:04 -04:00
nvme_transport.c scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
nvme_uevent.c util: add spdk_strerror() wrapper with TLS support 2018-01-04 15:00:09 -05:00
nvme_uevent.h nvme: Add support of hotplug for vfio-attached devices. 2017-12-06 17:04:49 -05:00
nvme.c nvme: require trid to be valid in nvme_ctrlr_probe 2018-04-19 17:51:14 -04:00