Spdk/test/nvme
yidong0635 c947e87e46 nvme/deallocated_value: Fix scanbuild error on fedora30 with GCC9.
Scanbuild error on fedora30 reports:
warning: Array access (via field 'write_buf') results in a null pointer dereference
                if (context->write_buf[i]) {

In deallocated_value.c, cleanup function be used at many places to deal with failed
cases even context->write_buf is  NULL, so add context->write_buf pointer check before
array data. I think context->read_buf is the same.

This is related to issue #822.

Change-Id: I33c685fd732da820c1dfc861eb991b92b41caa29
Signed-off-by: yidong0635 <dongx.yi@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/458736
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-06-26 08:06:13 +00:00
..
aer build: fix duplicate spdk.common.mk includes 2019-05-22 14:51:01 +00:00
deallocated_value nvme/deallocated_value: Fix scanbuild error on fedora30 with GCC9. 2019-06-26 08:06:13 +00:00
e2edp build: fix duplicate spdk.common.mk includes 2019-05-22 14:51:01 +00:00
err_injection build: fix duplicate spdk.common.mk includes 2019-05-22 14:51:01 +00:00
overhead build: fix duplicate spdk.common.mk includes 2019-05-22 14:51:01 +00:00
perf test: replace backticks with dollar-parenthesis syntax 2019-06-17 07:19:03 +00:00
reset test/nvme: check_io after reset without setting long time 2019-06-26 04:18:50 +00:00
sgl build: fix duplicate spdk.common.mk includes 2019-05-22 14:51:01 +00:00
hotplug.sh test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
Makefile nvme: add nvme error injection support 2018-06-22 17:26:34 +00:00
nvme.sh test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
spdk_nvme_cli.sh test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00