Segher Boessenkool wrote:In this case -ENOMEM was _all_ error values, but I get your point. --- bitmap_find_free_region(), called by mpic_msi_alloc_hwirqs() may return signed, but hwirq is unsigned. A failed allocation remains unnoticed. diff --git a/arch/powerpc/sysdev/mpic_u3msi.c b/arch/powerpc/sysdev/mpic_u3msi.c index 1d5a408..e790f39 100644 --- a/arch/powerpc/sysdev/mpic_u3msi.c +++ b/arch/powerpc/sysdev/mpic_u3msi.c @@ -115,14 +115,16 @@ static int u3msi_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) struct msi_desc *entry; struct msi_msg msg; u64 addr; + int ret; addr = find_ht_magic_addr(pdev); msg.address_lo = addr & 0xFFFFFFFF; msg.address_hi = addr >> 32; list_for_each_entry(entry, &pdev->msi_list, list) { - hwirq = mpic_msi_alloc_hwirqs(msi_mpic, 1); - if (hwirq < 0) { + ret = mpic_msi_alloc_hwirqs(msi_mpic, 1); + hwirq = ret; + if (ret < 0) { pr_debug("u3msi: failed allocating hwirq\n"); return hwirq; } --
| Srivatsa Vaddagiri | [PATCH 1/2] rcfs core patch |
| Thomas Gleixner | Re: Regression in 2.6.27 caused by commit bfc0f59 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Florian Schmidt | blacklist kernel boot option |
git: | |
| Scott Chacon | Git Community Book |
| Peter Stahlir | Git as a filesystem |
| Matthew L Foster | git and time |
| Jakub Narebski | Re: VCS comparison table |
| frantisek holop | nptd regression in 4.2 |
| J.W. Zondag | Dell PE1950 III - Perc 6i |
| Alexey Suslikov | OT: OpenBSD on Asus eeePC |
| Richard Stallman | Real men don't attack straw men |
| hooanon05 | [PATCH 57/67] aufs sysfs interface |
| Michael Loftis | Re: [RFC] VM: I have a dream... |
| Suparna Bhattacharya | Reviewing ext3 improvement patches (delalloc, mballoc, extents) |
| Josef 'Jeff' Sipek | [PATCH 09/32] Unionfs: cache-coherency - dentries |
