ut/nvme: add missing probe_ctx.init_ctrlrs tailq initialization
Detected by scanbuild, but it's actually a programming error. It could make the failed test segfault instead of cleanly printing the total number of failures. Change-Id: I12f4bc2b1ccd2034251c1840381875d51708c6fb Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/462871 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: yidong0635 <dongx.yi@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Maciej Szwed <maciej.szwed@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
bc6a51aaff
commit
34cdf61f80
@ -727,6 +727,7 @@ test_nvme_ctrlr_probe(void)
|
||||
void *cb_ctx = NULL;
|
||||
struct spdk_nvme_ctrlr *dummy = NULL;
|
||||
|
||||
TAILQ_INIT(&probe_ctx.init_ctrlrs);
|
||||
nvme_driver_init();
|
||||
|
||||
/* test when probe_cb returns false */
|
||||
|
Loading…
Reference in New Issue
Block a user