Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268126
b: refs/heads/master
c: 8b9987e
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Sep 6, 2011
1 parent d1583c9 commit f43b79b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d531babe8259992be32144f2c80fa5e15f9d4d26
refs/heads/master: 8b9987e9050aeba12325a3f0ab0f4a2934c37c3c
26 changes: 15 additions & 11 deletions trunk/drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,18 +492,15 @@ static int vmbus_bus_init(int irq)

ret = bus_register(&hv_bus);
if (ret)
return ret;
goto err_cleanup;

ret = request_irq(irq, vmbus_isr, IRQF_SAMPLE_RANDOM,
driver_name, hv_acpi_dev);

if (ret != 0) {
pr_err("Unable to request IRQ %d\n",
irq);

bus_unregister(&hv_bus);

return ret;
goto err_unregister;
}

vector = IRQ0_VECTOR + irq;
Expand All @@ -514,16 +511,23 @@ static int vmbus_bus_init(int irq)
*/
on_each_cpu(hv_synic_init, (void *)&vector, 1);
ret = vmbus_connect();
if (ret) {
free_irq(irq, hv_acpi_dev);
bus_unregister(&hv_bus);
return ret;
}

if (ret)
goto err_irq;

vmbus_request_offers();

return 0;

err_irq:
free_irq(irq, hv_acpi_dev);

err_unregister:
bus_unregister(&hv_bus);

err_cleanup:
hv_cleanup();

return ret;
}

/**
Expand Down

0 comments on commit f43b79b

Please sign in to comment.