[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150324150706.GA22934@earth>
Date: Tue, 24 Mar 2015 16:07:06 +0100
From: Sebastian Reichel <sre@...nel.org>
To: Jiri Kosina <jkosina@...e.cz>
Cc: Krzysztof Kozlowski <k.kozlowski@...sung.com>,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-pm@...r.kernel.org,
Dmitry Eremin-Solenikov <dbaryshkov@...il.com>,
David Woodhouse <dwmw2@...radead.org>,
Dan Carpenter <dan.carpenter@...cle.com>
Subject: Re: [PATCH] HID: input: Fix NULL pointer dereference when
power_supply_register fails
Hi Krzysztof & Jiri,
On Tue, Mar 24, 2015 at 12:02:41PM +0100, Jiri Kosina wrote:
> On Mon, 23 Mar 2015, Krzysztof Kozlowski wrote:
>
> > Do not call power_supply_powers() if power_supply_register() failed
> > earlier. This fixes possible NULL pointer dereference by
> > power_supply_powers() in such case.
> >
> > Signed-off-by: Krzysztof Kozlowski <k.kozlowski@...sung.com>
> > Reported-by: Dan Carpenter <dan.carpenter@...cle.com>
> >
> > ---
> >
> > The patch was prepared on top of next-20150323. It depends on changes in
> > power supply core (battery-2.6.git) so probably it should be applied to
> > the battery tree.
>
> Acked-by: Jiri Kosina <jkosina@...e.cz>
>
> for the merge through battery-2.6.git. Thanks.
Thanks, pulled.
-- Sebastian
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists