bitmap_find_free_region(), called by mpic_msi_alloc_hwirqs() may
return -ENOMEM, but hwirq of type irq_hw_number_t which is unsigned.
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
The functions can be found respectively in:
//---[ vi lib/bitmap.c +807 ]---
//---[ vi arch/powerpc/sysdev/mpic_msi.c +39 ]---
diff --git a/arch/powerpc/sysdev/mpic_pasemi_msi.c b/arch/powerpc/sysdev/mpic_pasemi_msi.c
index 33cbfb2..a15ac5c 100644
--- a/arch/powerpc/sysdev/mpic_pasemi_msi.c
+++ b/arch/powerpc/sysdev/mpic_pasemi_msi.c
@@ -109,7 +109,7 @@ static int pasemi_msi_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)
* sources can be changed independently.
*/
hwirq = mpic_msi_alloc_hwirqs(msi_mpic, ALLOC_CHUNK);
- if (hwirq < 0) {
+ if (hwirq == -ENOMEM) {
pr_debug("pasemi_msi: 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 |
