Assert that return pointer of to_blk_dev() is not NULL, before dereferencing it. Change-Id: I15adeac0926f23f84fdb3af88fc15ac07c580d91 Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17536 Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
rte_vhost_user.c | ||
spdk_vhost.map | ||
vhost_blk.c | ||
vhost_internal.h | ||
vhost_rpc.c | ||
vhost_scsi.c | ||
vhost.c |