Commit 51b15b93 authored by Cunyin Chang's avatar Cunyin Chang Committed by Daniel Verkamp
Browse files

nvme: Make sure the driver not exit when aer not supported.



QEMU's virtual NVMe controller device does not support the AER Set
Feature, so ignore its failure and continue.

Change-Id: I8b5c217a3112edabb6f76ec3e5f4ef774981a1d7
Signed-off-by: default avatarCunyin Chang <cunyin.chang@intel.com>
parent 8a6b62c9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -810,7 +810,7 @@ nvme_ctrlr_configure_aer(struct spdk_nvme_ctrlr *ctrlr)
	}
	if (spdk_nvme_cpl_is_error(&status.cpl)) {
		SPDK_ERRLOG("nvme_ctrlr_cmd_set_async_event_config failed!\n");
		return -ENXIO;
		return 0;
	}

	/* aerl is a zero-based value, so we need to add 1 here. */