[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20101222000501.GB24834@oksana.dev.rtsoft.ru>
Date: Wed, 22 Dec 2010 03:05:01 +0300
From: Anton Vorontsov <cbouatmailru@...il.com>
To: Lars-Peter Clausen <lars@...afoo.de>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] POWER: gpio-charger: Fix potential race between irq
handler and probe/remove function
On Thu, Nov 18, 2010 at 11:08:38PM +0100, Lars-Peter Clausen wrote:
> This patch fixes a potential race between the irq handler and the probe and
> remove functions.
> The irq should not be requested before the chargers power_supply has been
> registered and has to be freed before the power_supply is unregistered,
> otherwise it is possible that the irq fires while the power_supply is not
> initialized yet or has already been freed.
>
> While we are at it replace request_irq with request_any_context_irq.
>
> Signed-off-by: Lars-Peter Clausen <lars@...afoo.de>
Applied to battery-2.6.git, thanks!
--
Anton Vorontsov
Email: cbouatmailru@...il.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists