Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138481
b: refs/heads/master
c: d523cc3
h: refs/heads/master
i:
  138479: 761cdf7
v: v3
  • Loading branch information
Michael Ellerman authored and Benjamin Herrenschmidt committed Feb 23, 2009
1 parent 3604204 commit 5925d88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 620165f971753c2c451c880796bac7cd66f3534a
refs/heads/master: d523cc379da57f1c39f5db9c47bdaa94f74727ff
6 changes: 5 additions & 1 deletion trunk/arch/powerpc/platforms/pseries/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ static int check_req(struct pci_dev *pdev, int nvec, char *prop_name)

if (*req_msi < nvec) {
pr_debug("rtas_msi: %s requests < %d MSIs\n", prop_name, nvec);
return -ENOSPC;

if (*req_msi == 0) /* Be paranoid */
return -ENOSPC;

return *req_msi;
}

return 0;
Expand Down

0 comments on commit 5925d88

Please sign in to comment.