login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
23
Re: [PATCH v2] asic3: platform_get_irq() may return signed unnoticed
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Samuel Ortiz <sameo@...>
To: Roel Kluin <12o3l@...>
Cc: <pb@...>, lkml <linux-kernel@...>
Subject:
Re: [PATCH v2] asic3: platform_get_irq() may return signed unnoticed
Date: Wednesday, April 23, 2008 - 7:16 pm
On Thu, Apr 24, 2008 at 12:58:02AM +0200, Roel Kluin wrote:
quoted text
> Thanks to Joe Perches for catching an error in my previous
Yep, that makes sense now.
quoted text
> --- > asic->irq_nr is unsigned. platform_get_irq() may return signed unnoticed > > Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Acked-by: Samuel Ortiz <sameo@openedhand.com>
quoted text
> --- > diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c > index f6f2d96..abd7ffc 100644 > --- a/drivers/mfd/asic3.c > +++ b/drivers/mfd/asic3.c > @@ -300,10 +300,13 @@ static int asic3_irq_probe(struct platform_device *pdev) > struct asic3 *asic = platform_get_drvdata(pdev); > unsigned long clksel = 0; > unsigned int irq, irq_base; > + int ret; > + > + ret = platform_get_irq(pdev, 0); > + if (ret < 0) > + return ret; > > - asic->irq_nr = platform_get_irq(pdev, 0); > - if (asic->irq_nr < 0) > - return asic->irq_nr; > + asic->irq_nr = ret; > > /* turn on clock to IRQ controller */ > clksel |= CLOCK_SEL_CX; >
--
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] asic3: platform_get_irq() may return signed unnoticed
, Roel Kluin
, (Wed Apr 23, 5:32 pm)
[PATCH v2] asic3: platform_get_irq() may return signed unnot...
, Roel Kluin
, (Wed Apr 23, 6:38 pm)
Re: [PATCH v2] asic3: platform_get_irq() may return signed u...
, Roel Kluin
, (Wed Apr 23, 6:58 pm)
Re: [PATCH v2] asic3: platform_get_irq() may return signed u...
, Samuel Ortiz
, (Wed Apr 23, 7:16 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
hooanon05
[PATCH 67/67] merge aufs
Greg Kroah-Hartman
[PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt
monstr
[PATCH 33/52] [microblaze] bug headers files
Oliver Pinter
Re: x86: 4kstacks default
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
David Miller
[GIT]: Networking
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
6 users
and
783 guests
online.
Online users
damienclarkijh
zeekec
ipodtouchtutor
sellingonlinyy
freedomsoftmby
Lukediygd
Syndicate