Thread (3 messages) flat view 3 messages, 2 authors, 2015-08-12

Re: [PATCH] HID: hid-input: fix double-free in cleanup_battery

From: Matthew Leach <hidden>
Date: 2015-08-12 13:19:17
Also in: lkml, stable

On Wed, 2015-08-12 at 15:16 +0200, Jiri Kosina wrote:
On Wed, 12 Aug 2015, Matthew Leach wrote:
quoted
The power supply layer has taken control of the power supply 
objects
quoted
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
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help