83d1bfae41
This patch fixes github issue #385. We need to unregister previously created NVMe controller when creation of NVMe bdevs fails otherwise we won't be able to use NVMe device as it will stay in wrong state. Signed-off-by: Maciej Szwed <maciej.szwed@intel.com> Change-Id: I28a165aba1a556a2ed2d4cd5ff6fd510e80657d3 Reviewed-on: https://review.gerrithub.io/421006 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>