From 8abc931791e9b8dd7b3cc34bc06f105c6947fd66 Mon Sep 17 00:00:00 2001 From: Alexander Usyskin Date: Tue, 23 Oct 2018 21:42:15 +0300 Subject: [PATCH] dm: mei: set addresses in the hbm disconnect reply MEI HBM the disconnect replay doesn't have the address set, breaking the protocol, fix the issue. Tracked-On: #1570 Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Acked-by: Wang, Yu1 --- devicemodel/hw/pci/virtio/virtio_mei.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devicemodel/hw/pci/virtio/virtio_mei.c b/devicemodel/hw/pci/virtio/virtio_mei.c index 0ea4d0b23..a14eb0cca 100644 --- a/devicemodel/hw/pci/virtio/virtio_mei.c +++ b/devicemodel/hw/pci/virtio/virtio_mei.c @@ -1257,6 +1257,8 @@ vmei_hbm_handler(struct virtio_mei *vmei, const void *data) memset(&disconnect_res, 0, sizeof(disconnect_res)); disconnect_res.hbm_cmd.cmd = MEI_HBM_CLIENT_DISCONNECT; disconnect_res.hbm_cmd.is_response = 1; + disconnect_res.me_addr = disconnect_req->me_addr; + disconnect_res.host_addr = disconnect_req->host_addr; disconnect_res.status = status; vmei_hbm_response(vmei, &disconnect_res, sizeof(disconnect_res));