From 678392aa6bef5e30cb1b9452978fd0b2ce56c2ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 19 Feb 2024 11:38:02 +0100 Subject: Merging upstream version 1.8. Signed-off-by: Daniel Baumann --- examples/mi-mctp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/mi-mctp.c b/examples/mi-mctp.c index 8019249..e0b7644 100644 --- a/examples/mi-mctp.c +++ b/examples/mi-mctp.c @@ -201,7 +201,7 @@ int do_identify(nvme_mi_ep_t ep, int argc, char **argv) partial = argc > 2 && !strcmp(argv[2], "--partial"); - ctrl = nvme_mi_init_ctrl(ep, tmp); + ctrl = nvme_mi_init_ctrl(ep, ctrl_id); if (!ctrl) { warn("can't create controller"); return -1; @@ -211,7 +211,7 @@ int do_identify(nvme_mi_ep_t ep, int argc, char **argv) id_args.args_size = sizeof(id_args); id_args.cns = NVME_IDENTIFY_CNS_CTRL; id_args.nsid = NVME_NSID_NONE; - id_args.cntid = ctrl_id; + id_args.cntid = 0; id_args.csi = NVME_CSI_NVM; /* for this example code, we can either do a full or partial identify; -- cgit v1.2.3