linux/drivers/base
Christophe JAILLET 1875ed81c2 driver core: bus: Fix a potential double free
commit 0f9b011d33 upstream.

The .release function of driver_ktype is 'driver_release()'.
This function frees the container_of this kobject.

So, this memory must not be freed explicitly in the error handling path of
'bus_add_driver()'. Otherwise a double free will occur.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-13 14:09:44 -07:00
..
power PM / Domains: defer dev_pm_domain_set() until genpd->attach_dev succeeds if present 2017-08-06 19:19:42 -07:00
regmap regmap: spmi: Fix regmap_spmi_ext_read in multi-byte case 2016-05-18 17:06:48 -07:00
attribute_container.c
base.h
bus.c driver core: bus: Fix a potential double free 2017-09-13 14:09:44 -07:00
cacheinfo.c
class.c
component.c
container.c
core.c Add "shutdown" to "struct class". 2017-07-21 07:44:58 +02:00
cpu.c
dd.c
devcoredump.c
devres.c
devtmpfs.c
dma-coherent.c
dma-contiguous.c
dma-mapping.c drivers: base: dma-mapping: page align the size when unmap_kernel_range 2016-10-22 12:26:55 +02:00
driver.c
firmware_class.c firmware: fix usermode helper fallback loading 2017-01-09 08:07:49 +01:00
firmware.c
hypervisor.c
init.c
isa.c
Kconfig
Makefile
map.c
memory.c base/memory, hotplug: fix a kernel oops in show_valid_zones() 2017-02-09 08:02:47 +01:00
module.c base: make module_create_drivers_dir race-free 2016-07-27 09:47:32 -07:00
node.c
pinctrl.c
platform-msi.c
platform.c driver core: platform: fix race condition with driver_override 2017-07-15 11:57:44 +02:00
property.c
soc.c
syscore.c
topology.c
transport_class.c