From: Matthew Leach <matthew@mattleach.net>
To: Jiri Kosina <jikos@kernel.org>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
Krzysztof Kozlowski <k.kozlowski@samsung.com>,
Sebastian Reichel <sre@kernel.org>,
stable@vger.kernel.org
Subject: Re: [PATCH] HID: hid-input: fix double-free in cleanup_battery
Date: Wed, 12 Aug 2015 13:15:29 +0100 [thread overview]
Message-ID: <1439381729.357.0.camel@mattleach.net> (raw)
In-Reply-To: <alpine.LNX.2.00.1508121515370.27871@pobox.suse.cz>
On Wed, 2015-08-12 at 15:16 +0200, Jiri Kosina wrote:
> On Wed, 12 Aug 2015, Matthew Leach wrote:
>
> > The power supply layer has taken control of the power supply
> objects
> > from the drivers to core, see [1]. As such, calling
> > power_supply_unregister is enough to free the power_supply device.
> >
> > Remove the extra kfree's as the power_supply core will handle
> freeing
> > the power_supply object for us.
>
> Please see commit 0621809e37 ("HID: hid-input: Fix accessing freed
> memory
> during device disconnect") in Linus' tree.
Ah. I missed that. Sorry for the noise.
--
Matt
prev parent reply other threads:[~2015-08-12 13:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-12 12:09 Matthew Leach
2015-08-12 13:16 ` Jiri Kosina
2015-08-12 12:15 ` Matthew Leach [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1439381729.357.0.camel@mattleach.net \
--to=matthew@mattleach.net \
--cc=jikos@kernel.org \
--cc=k.kozlowski@samsung.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sre@kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome