nvme: Fix the bug for address parse when get hot insert event.
Change-Id: Ic346173cb88a774ac4288ad3a5aa08fb3fe909ec Signed-off-by: Cunyin Chang <cunyin.chang@intel.com>
This commit is contained in:
parent
69fa44fc88
commit
ca618b2751
@ -484,7 +484,7 @@ nvme_hotplug_monitor(void *cb_ctx, spdk_nvme_probe_cb probe_cb,
|
||||
SPDK_TRACELOG(SPDK_TRACE_NVME, "add nvme address: %s\n",
|
||||
event.traddr);
|
||||
if (spdk_process_is_primary()) {
|
||||
if (spdk_pci_addr_parse(&pci_addr, event.traddr)) {
|
||||
if (!spdk_pci_addr_parse(&pci_addr, event.traddr)) {
|
||||
nvme_transport_ctrlr_attach(SPDK_NVME_TRANSPORT_PCIE, probe_cb, cb_ctx, &pci_addr);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user