From: Daniel Wagner Date: Thu, 26 Jan 2023 13:43:16 +0000 (+0100) Subject: fabrics: Pass discovery ctrl to __discover() X-Git-Tag: v2.3~5^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=35f32bb1c15c469e8b0420d946ee42d7d60c53cf;p=users%2Fsagi%2Fnvme-cli.git fabrics: Pass discovery ctrl to __discover() We should pass the discovery controller down to __discover and not the iterator. Fixes: 952aa044b331 ("fabrics: Honor JSON config file in connect-all command") Signed-off-by: Daniel Wagner --- diff --git a/fabrics.c b/fabrics.c index f5f098b8..a07f065f 100644 --- a/fabrics.c +++ b/fabrics.c @@ -755,7 +755,7 @@ static int discover_from_json_config_file(nvme_root_t r, nvme_host_t h, if (!force) { cn = lookup_discovery_ctrl(r, &trcfg); if (cn) { - __discover(c, &cfg, raw, connect, + __discover(cn, &cfg, raw, connect, true, flags); continue; }