Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 665e2245 authored by Dexuan Cui's avatar Dexuan Cui Committed by Bjorn Helgaas
Browse files

PCI: hv: Handle vmbus_sendpacket() failure in hv_compose_msi_msg()



Handle vmbus_sendpacket() failure in hv_compose_msi_msg().

I happened to find this when reading the code.  I didn't get a real issue
however.

Signed-off-by: default avatarDexuan Cui <decui@microsoft.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarKY Srinivasan <kys@microsoft.com>
CC: Jake Oshins <jakeo@microsoft.com>
CC: Haiyang Zhang <haiyangz@microsoft.com>
CC: Vitaly Kuznetsov <vkuznets@redhat.com>
parent 617ceb62
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -895,7 +895,9 @@ static void hv_compose_msi_msg(struct irq_data *data, struct msi_msg *msg)
			       sizeof(*int_pkt), (unsigned long)&ctxt.pkt,
			       VM_PKT_DATA_INBAND,
			       VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED);
	if (!ret)
	if (ret)
		goto free_int_desc;

	wait_for_completion(&comp.comp_pkt.host_event);

	if (comp.comp_pkt.completion_status < 0) {