login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
29
Re: [PATCH] ARM: am79c961a: 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:
Jeff Garzik <jeff@...>
To: Roel Kluin <12o3l@...>
Cc: <rmk@...>, Linux-arm <linux-arm-kernel@...>, lkml <linux-kernel@...>
Subject:
Re: [PATCH] ARM: am79c961a: platform_get_irq() may return signed unnoticed
Date: Tuesday, April 29, 2008 - 1:59 am
Roel Kluin wrote:
quoted text
> dev->irq is unsigned, platform_get_irq() may return signed unnoticed > > Signed-off-by: Roel Kluin <12o3l@tiscali.nl> > --- > diff --git a/drivers/net/arm/am79c961a.c b/drivers/net/arm/am79c961a.c > index ba6bd03..a637910 100644 > --- a/drivers/net/arm/am79c961a.c > +++ b/drivers/net/arm/am79c961a.c > @@ -693,11 +693,15 @@ static int __init am79c961_probe(struct platform_device *pdev) > * done by the ether bootp loader. > */ > dev->base_addr = res->start; > - dev->irq = platform_get_irq(pdev, 0); > + ret = platform_get_irq(pdev, 0); > > - ret = -ENODEV; > - if (dev->irq < 0) > + if (ret < 0) { > + ret = -ENODEV; > goto nodev; > + } > + dev->irq = ret; > + > + ret = -ENODEV; > if (!request_region(dev->base_addr, 0x18, dev->name)) > goto nodev;
applied --
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] ARM: am79c961a: platform_get_irq() may return signed...
, Roel Kluin
, (Wed Apr 23, 5:44 pm)
Re: [PATCH] ARM: am79c961a: platform_get_irq() may return si...
, Jeff Garzik
, (Tue Apr 29, 1:59 am)
Re: [PATCH] ARM: am79c961a: platform_get_irq() may return si...
, Uwe
, (Thu Apr 24, 2:11 am)
[PATCH 2/2] ARM: ax88796: platform_get_irq() may return sign...
, Roel Kluin
, (Wed Apr 23, 5:49 pm)
Re: [PATCH 2/2] ARM: ax88796: platform_get_irq() may return ...
, Russell King - ARM Linux
, (Mon Apr 28, 4:09 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Amit K. Arora
[RFC] Heads up on sys_fallocate()
Linus Torvalds
Linux 2.6.23-rc9 and a heads-up for the 2.6.24 series..
Paul Jackson
Re: cpuset-remove-sched-domain-hooks-from-cpusets
Greg KH
[GIT PATCH] driver core patches against 2.6.24
git
:
linux-netdev
:
Linus Torvalds
Re: [GIT]: Networking
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [klibc] [patch] import socket defines
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
560 guests
online.
Online users
wikaniko
Syndicate