[dpdk-dev] [PATCH v2 2/5] examples/vhost_scsi: fix missing NULL-check for parameter

2019-04-05 Thread Bruce Richardson
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: db75c7af19bb

Re: [dpdk-dev] [PATCH v2 2/5] examples/vhost_scsi: fix missing NULL-check for parameter

2019-04-07 Thread Tiwei Bie
On Fri, Apr 05, 2019 at 03:37:06PM +0100, Bruce Richardson wrote: > 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 chec

Re: [dpdk-dev] [PATCH v2 2/5] examples/vhost_scsi: fix missing NULL-check for parameter

2019-04-08 Thread Bruce Richardson
On Mon, Apr 08, 2019 at 11:31:11AM +0800, Tiwei Bie wrote: > On Fri, Apr 05, 2019 at 03:37:06PM +0100, Bruce Richardson wrote: > > 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. T