Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221886
b: refs/heads/master
c: 07cf2a6
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Konrad Rzeszutek Wilk committed Nov 8, 2010
1 parent 1c953f8 commit f5179d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 1688c3d6000b1183bcb604c8c85f742a579990e5
refs/heads/master: 07cf2a64c2ad3408a0e12aa4cd6040b30c09381d
8 changes: 5 additions & 3 deletions trunk/arch/x86/pci/xen.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ static int xen_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
irq = xen_allocate_pirq(v[i], 0, /* not sharable */
(type == PCI_CAP_ID_MSIX) ?
"pcifront-msi-x" : "pcifront-msi");
if (irq < 0)
return -1;
if (irq < 0) {
ret = -1;
goto free;
}

ret = set_irq_msi(irq, msidesc);
if (ret)
Expand All @@ -164,7 +166,7 @@ static int xen_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
if (ret == -ENODEV)
dev_err(&dev->dev, "Xen PCI frontend has not registered" \
" MSI/MSI-X support!\n");

free:
kfree(v);
return ret;
}
Expand Down

0 comments on commit f5179d7

Please sign in to comment.