[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171118081947.GX31757@n2100.armlinux.org.uk>
Date: Sat, 18 Nov 2017 08:19:47 +0000
From: Russell King - ARM Linux <linux@...linux.org.uk>
To: Arvind Yadav <arvind.yadav.cs@...il.com>
Cc: ulf.hansson@...aro.org, carlo@...one.org, khilman@...libre.com,
ben-linux@...ff.org, adrian.hunter@...el.com, vireshk@...nel.org,
maxime.ripard@...e-electrons.com, wens@...e.org,
linux-amlogic@...ts.infradead.org, linux-mmc@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 0/6] mmc: Handle platform_get_irq's error checking and
return
On Sat, Nov 18, 2017 at 01:58:16AM +0530, Arvind Yadav wrote:
> The platform_get_irq() function returns negative if an error occurs.
> zero or positive number on success. platform_get_irq() error checking
> for zero is not correct and and we must check its return value.
IRQ 0 is not a valid interrupt. The correct test here is <= 0.
Please rework your patches for this.
Thanks.
--
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up
According to speedtest.net: 8.21Mbps down 510kbps up
Powered by blists - more mailing lists