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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
Jiri Kosina
SUSE Labs

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux