From 7b049a18a058ab2aa1774d65b4a885d60d5422da Mon Sep 17 00:00:00 2001 From: "Yang, Longlong" Date: Thu, 12 Oct 2023 21:24:52 -0400 Subject: [PATCH] bugfix: return corresponding port_index in QUERY_RESP. fix #291 Signed-off-by: Yang, Longlong --- library/pci_ide_km_responder_lib/pci_ide_km_rsp_query.c | 1 + 1 file changed, 1 insertion(+) diff --git a/library/pci_ide_km_responder_lib/pci_ide_km_rsp_query.c b/library/pci_ide_km_responder_lib/pci_ide_km_rsp_query.c index 3341171..ae4c567 100644 --- a/library/pci_ide_km_responder_lib/pci_ide_km_rsp_query.c +++ b/library/pci_ide_km_responder_lib/pci_ide_km_rsp_query.c @@ -57,6 +57,7 @@ libspdm_return_t pci_ide_km_get_response_query (const void *pci_doe_context, libspdm_zero_mem (response, *response_size); ide_km_response->header.object_id = PCI_IDE_KM_OBJECT_ID_QUERY_RESP; + ide_km_response->port_index = ide_km_request->port_index; status = pci_ide_km_device_query (pci_doe_context, spdm_context, session_id, ide_km_request->port_index,