@@ -455,6 +455,14 @@ static bool ctrl_match(const char *tag,
455455 bool should_match )
456456{
457457 struct nvme_global_ctx * ctx ;
458+ struct nvmf_context fctx = {
459+ .transport = candidate -> transport ,
460+ .traddr = candidate -> traddr ,
461+ .host_traddr = candidate -> host_traddr ,
462+ .host_iface = candidate -> host_iface ,
463+ .trsvcid = candidate -> trsvcid ,
464+ .subsysnqn = candidate -> subsysnqn ,
465+ };
458466 nvme_host_t h ;
459467 nvme_ctrl_t reference_ctrl ; /* Existing controller (from sysfs) */
460468 nvme_ctrl_t candidate_ctrl ;
@@ -483,10 +491,7 @@ static bool ctrl_match(const char *tag,
483491 }
484492
485493 /* nvme_ctrl_find() MUST BE RUN BEFORE nvme_lookup_ctrl() */
486- found_ctrl = nvme_ctrl_find (s , candidate -> transport , candidate -> traddr ,
487- candidate -> trsvcid , candidate -> subsysnqn ,
488- candidate -> host_traddr ,
489- candidate -> host_iface );
494+ found_ctrl = nvme_ctrl_find (s , & fctx );
490495
491496 candidate_ctrl = nvme_lookup_ctrl (s , candidate -> transport , candidate -> traddr ,
492497 candidate -> host_traddr , candidate -> host_iface ,
0 commit comments