numam-spdk/lib
Ben Walker 96fcdf93e7 vhost/nvme: Check for NULL nvme on public functions
Due to the check on line 153 in t_nvme_dev, Klocwork
thinks nvme can be null. Therefore, we must check that
it isn't null before dereferencing it. We can either
solve this the way I have here, or remove check
that causes to_nvme_dev to return null.

Change-Id: I86d4939664704ff1117a7c1b7dada7e1ae479c6f
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/406992
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
2018-04-10 12:58:34 -04:00
..
bdev bdev/nvme: Fix use after free in apply firmware RPC 2018-04-09 16:33:19 -04:00
blob blob: copy xattr name with memcpy() 2018-04-09 15:35:36 -04:00
blobfs blob: make spdk_blob_resize an async operation 2018-04-05 18:43:11 -04:00
conf conf: Remove use of perror() for strdup() failure 2017-12-15 16:13:27 -05:00
copy copy/ioat: reduce log level of informational messages 2018-04-06 18:31:54 -04:00
cunit include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
env_dpdk env_dpdk: track PCI devices internally for vtophys 2018-04-02 14:03:05 -04:00
event nvmf: Make spdk_nvmf_tgt_listen asynchronous 2018-04-05 12:54:31 -04:00
ioat scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
iscsi iscsi: enable per-core cache for PDU data-out pool 2018-04-03 11:57:17 -04:00
json json: add va_arg versions for write_string and write_named_string 2018-02-23 15:27:16 -05:00
jsonrpc jsonrpc: add spdk_jsonrpc_send_error_response_fmt 2018-02-23 15:27:16 -05:00
log log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
lvol lvol: use per-lvol uuid as unique_id if available 2018-04-06 18:31:31 -04:00
nbd lib: Return instead of abort() in nbd 2018-03-13 13:41:50 -04:00
net net_framework: add registering of multiple spdk_net_frameworks 2018-03-15 17:54:29 -04:00
nvme nvme/rdma: improve nvme_rdma_get_event() message 2018-04-06 18:30:58 -04:00
nvmf nvmf: correct args order to get bdev_io status 2018-04-09 13:13:41 -04:00
rocksdb rocksdb: remove nonsensical fallocate #ifdef 2018-03-27 12:41:12 -04:00
rpc rpc: remove the existing socket file when application starts 2018-03-02 16:48:53 -05:00
scsi io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
trace app,lib: fix checking mmap return value 2018-03-30 16:18:34 -04:00
ut_mock test/mock: add pthread_self 2017-09-19 17:15:15 -04:00
util io_channel: invoke unregister_cb on same thread unregister was called 2018-03-19 21:50:19 -04:00
vhost vhost/nvme: Check for NULL nvme on public functions 2018-04-10 12:58:34 -04:00
virtio virtio: don't silence vhost-user errors 2018-04-03 15:22:49 -04:00
Makefile virtio: add new library virtio 2017-12-26 13:03:29 -05:00