Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333233
b: refs/heads/master
c: 9dbdfd2
h: refs/heads/master
i:
  333231: 474356d
v: v3
  • Loading branch information
Alex Williamson committed Oct 10, 2012
1 parent c8b5704 commit 23bbbd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 34002f54d2bd8e8ac04f0da0847f71a8a06a5d38
refs/heads/master: 9dbdfd23b7638d054f3b0e70c64dfb9f297f2a9f
5 changes: 3 additions & 2 deletions trunk/drivers/vfio/pci/vfio_pci_intrs.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,19 +400,20 @@ static int vfio_intx_set_signal(struct vfio_pci_device *vdev, int fd)
return PTR_ERR(trigger);
}

vdev->ctx[0].trigger = trigger;

if (!vdev->pci_2_3)
irqflags = 0;

ret = request_irq(pdev->irq, vfio_intx_handler,
irqflags, vdev->ctx[0].name, vdev);
if (ret) {
vdev->ctx[0].trigger = NULL;
kfree(vdev->ctx[0].name);
eventfd_ctx_put(trigger);
return ret;
}

vdev->ctx[0].trigger = trigger;

/*
* INTx disable will stick across the new irq setup,
* disable_irq won't.
Expand Down

0 comments on commit 23bbbd1

Please sign in to comment.