numam-dpdk/examples/vhost_scsi
Bruce Richardson 6fd5b5734f examples/vhost_scsi: fix null-check for parameter
Coverity points out that there is a check in the main thread loop for the
ctrlr->bdev being NULL, but by that stage the pointer has already been
dereferenced. Therefore, for safety, before we enter the loop do an
initial check on the parameter structure.

Coverity issue: 158657
Fixes: db75c7af19 ("examples/vhost_scsi: introduce a new sample app")
Cc: stable@dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
2019-04-23 00:15:10 +02:00
..
Makefile examples: detect default build directory 2019-03-30 01:12:15 +01:00
meson.build examples/vhost_scsi: fix header check for meson build 2019-04-23 00:15:10 +02:00
scsi_spec.h examples/vhost_scsi: replace strncpy with strlcpy 2018-05-13 23:54:28 +02:00
scsi.c replace snprintf with strlcpy without adding extra include 2019-04-04 22:45:54 +02:00
vhost_scsi.c examples/vhost_scsi: fix null-check for parameter 2019-04-23 00:15:10 +02:00
vhost_scsi.h examples: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00