login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
23
Re: [PATCH 2/2] mpic_u3msi: mpic_u3msi: failed allocation unnoticed
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Segher Boessenkool <segher@...>
To: Roel Kluin <12o3l@...>
Cc: <paulus@...>, <linuxppc-dev@...>, lkml <linux-kernel@...>
Subject:
Re: [PATCH 2/2] mpic_u3msi: mpic_u3msi: failed allocation unnoticed
Date: Wednesday, April 23, 2008 - 6:09 pm
> bitmap_find_free_region(), called by mpic_msi_alloc_hwirqs() may
quoted text
> return -ENOMEM, but hwirq of type irq_hw_number_t which is unsigned.
quoted text
> list_for_each_entry(entry, &pdev->msi_list, list) { > hwirq = mpic_msi_alloc_hwirqs(msi_mpic, 1); > - if (hwirq < 0) { > + if (hwirq == -ENOMEM) { > pr_debug("u3msi: failed allocating hwirq\n"); > return hwirq; > }
Please test for _all_ error values, instead. Segher --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] powerpc: mpic_pasemi_msi: failed allocation unnoticed
, Roel Kluin
, (Wed Apr 23, 12:51 pm)
[PATCH 1/2 v2] powerpc: mpic_pasemi_msi: failed allocation u...
, Roel Kluin
, (Wed Apr 23, 6:32 pm)
[PATCH 2/2] mpic_u3msi: mpic_u3msi: failed allocation unnoti...
, Roel Kluin
, (Wed Apr 23, 3:00 pm)
Re: [PATCH 2/2] mpic_u3msi: mpic_u3msi: failed allocation un...
, Segher Boessenkool
, (Wed Apr 23, 6:09 pm)
[PATCH 2/2 v2] mpic_u3msi: mpic_u3msi: failed allocation unn...
, Roel Kluin
, (Wed Apr 23, 6:25 pm)
Re: [PATCH 2/2 v2] mpic_u3msi: mpic_u3msi: failed allocation...
, Michael Ellerman
, (Wed Apr 23, 7:36 pm)
Re: [PATCH 2/2 v2] mpic_u3msi: mpic_u3msi: failed allocation...
, Benjamin Herrenschmidt
, (Wed Apr 23, 8:42 pm)
Re: [PATCH 2/2 v2] mpic_u3msi: mpic_u3msi: failed allocation...
, Roel Kluin
, (Wed Apr 23, 7:03 pm)
[PATCH 2/2] powerpc: mpic_pasemi_msi: failed allocation unno...
, Roel Kluin
, (Wed Apr 23, 12:54 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
David Miller
Re: [RFC/PATCH] Documentation of kernel messages
Rafael J. Wysocki
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6325
git
:
linux-netdev
:
Josip Rodin
bnx2_poll panicking kernel
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
Gerrit Renker
[PATCH 03/37] dccp: List management for new feature negotiation
Herbert Xu
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
821 guests
online.
Syndicate