login
Header Space

 
 

Re: [PATCH 2/2 v2] mpic_u3msi: mpic_u3msi: failed allocation unnoticed

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Roel Kluin <12o3l@...>
Cc: Segher Boessenkool <segher@...>, <linuxppc-dev@...>, <paulus@...>, lkml <linux-kernel@...>
Date: Wednesday, April 23, 2008 - 7:36 pm

On Thu, 2008-04-24 at 00:25 +0200, Roel Kluin wrote:
u3msi.c
v, int nvec, int type)

I'm not sure I like this.

I think the real bug is that we're using irq_hw_number_t to represent
something which isn't. At the end of the day we have to stash the hwirq
into the MSI message data, which is a u32.

I guess we could imagine a driver that does something magic to allow it
to put something bigger than a u32 in the MSI message, but I doubt it.

So I think =EF=BB=BFmpic_msi_alloc_hwirqs() should return a long, which all=
ows
it to return a full u32 plus the negative error values.

cheers

--=20
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2/2] mpic_u3msi: mpic_u3msi: failed allocation un..., Segher Boessenkool, (Wed Apr 23, 6:09 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)
speck-geostationary