projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
617ceb6
)
PCI: hv: Handle vmbus_sendpacket() failure in hv_compose_msi_msg()
author
Dexuan Cui
<
[email protected]
>
Tue, 23 Aug 2016 04:48:11 +0000
(
04:48
+0000)
committer
Bjorn Helgaas
<
[email protected]
>
Tue, 6 Sep 2016 17:21:57 +0000
(12:21 -0500)
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: Dexuan Cui <
[email protected]
>
Signed-off-by: Bjorn Helgaas <
[email protected]
>
Acked-by: KY Srinivasan <
[email protected]
>
CC: Jake Oshins <
[email protected]
>
CC: Haiyang Zhang <
[email protected]
>
CC: Vitaly Kuznetsov <
[email protected]
>
drivers/pci/host/pci-hyperv.c
patch
|
blob
|
history
diff --git
a/drivers/pci/host/pci-hyperv.c
b/drivers/pci/host/pci-hyperv.c
index 3034d48edbe168ae5fdc4ac9b62310ba00258fd7..e9307afa003d7046750274bbe0afb78dbbd8b5df 100644
(file)
--- a/
drivers/pci/host/pci-hyperv.c
+++ b/
drivers/pci/host/pci-hyperv.c
@@
-895,8
+895,10
@@
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)
- wait_for_completion(&comp.comp_pkt.host_event);
+ if (ret)
+ goto free_int_desc;
+
+ wait_for_completion(&comp.comp_pkt.host_event);
if (comp.comp_pkt.completion_status < 0) {
dev_err(&hbus->hdev->device,