Spdk/lib/vhost
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
..
rte_vhost vhost_user_nvme: add vhost user nvme target to SPDK 2018-04-03 15:01:24 -04:00
Makefile vhost_user_nvme: add vhost user nvme target to SPDK 2018-04-03 15:01:24 -04:00
vhost_blk.c vhost: reduce log level of informational messages 2018-04-05 12:06:45 -04:00
vhost_internal.h vhost_user_nvme: add vhost user nvme target to SPDK 2018-04-03 15:01:24 -04:00
vhost_nvme.c vhost/nvme: Check for NULL nvme on public functions 2018-04-10 12:58:34 -04:00
vhost_rpc.c vhost: unify vdev removal 2018-02-06 11:05:01 -05:00
vhost_scsi.c vhost: reduce log level of informational messages 2018-04-05 12:06:45 -04:00
vhost.c vhost: reduce log level of informational messages 2018-04-05 12:06:45 -04:00