Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362901
b: refs/heads/master
c: cdf1fd4
h: refs/heads/master
i:
  362899: 3b1c9ca
v: v3
  • Loading branch information
Gavin Shan authored and Bjorn Helgaas committed Apr 23, 2013
1 parent 7cae6ad commit fd317a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: e375b561817d9ae098cc4296a729fc88924a0159
refs/heads/master: cdf1fd4d906bc8c06510fd3e1d6a073441792792
5 changes: 1 addition & 4 deletions trunk/drivers/pci/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,9 +789,6 @@ static int pci_msi_check_device(struct pci_dev *dev, int nvec, int type)
if (ret)
return ret;

if (!pci_find_capability(dev, type))
return -EINVAL;

return 0;
}

Expand Down Expand Up @@ -942,7 +939,7 @@ int pci_enable_msix(struct pci_dev *dev, struct msix_entry *entries, int nvec)
int status, nr_entries;
int i, j;

if (!entries)
if (!entries || !dev->msix_cap)
return -EINVAL;

status = pci_msi_check_device(dev, nvec, PCI_CAP_ID_MSIX);
Expand Down

0 comments on commit fd317a5

Please sign in to comment.