Kishon Vijay Abraham I
9a5933aa12
reset: Fix memory leak in reset_control_array_put()
[ Upstream commit 532f9cd6ee994ed10403e856ca27501428048597 ]
Memory allocated for 'struct reset_control_array' in
of_reset_control_array_get() is never freed in
reset_control_array_put() resulting in kmemleak showing
the following backtrace.
backtrace:
[<00000000c5f17595>] __kmalloc+0x1b0/0x2b0
[<00000000bd499e13>] of_reset_control_array_get+0xa4/0x180
[<000000004cc02754>] 0xffff800008c669e4
[<0000000050a83b24>] platform_drv_probe+0x50/0xa0
[<00000000d3a0b0bc>] really_probe+0x108/0x348
[<000000005aa458ac>] driver_probe_device+0x58/0x100
[<000000008853626c>] device_driver_attach+0x6c/0x90
[<0000000085308d19>] __driver_attach+0x84/0xc8
[<00000000080d35f2>] bus_for_each_dev+0x74/0xc8
[<00000000dd7f015b>] driver_attach+0x20/0x28
[<00000000923ba6e6>] bus_add_driver+0x148/0x1f0
[<0000000061473b66>] driver_register+0x60/0x110
[<00000000c5bec167>] __platform_driver_register+0x40/0x48
[<000000007c764b4f>] 0xffff800008c6c020
[<0000000047ec2e8c>] do_one_initcall+0x5c/0x1b0
[<0000000093d4b50d>] do_init_module+0x54/0x1d0
Fixes: 17c82e206d ("reset: Add APIs to manage array of resets")
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
|
2019-12-05 09:19:36 +01:00 |
| .. |
|
hisilicon
|
reset: hi6220: Set module license so that it can be loaded
|
2017-05-24 10:53:41 +02:00 |
|
sti
|
reset: sti: Use devm_kcalloc() in syscfg_reset_controller_register()
|
2017-05-15 08:59:08 +02:00 |
|
tegra
|
reset: Add Tegra BPMP reset driver
|
2016-11-18 14:34:56 +01:00 |
|
core.c
|
reset: Fix memory leak in reset_control_array_put()
|
2019-12-05 09:19:36 +01:00 |
|
Kconfig
|
reset: meson: add meson audio arb driver
|
2018-07-20 18:17:31 +02:00 |
|
Makefile
|
reset: meson: add meson audio arb driver
|
2018-07-20 18:17:31 +02:00 |
|
reset-a10sr.c
|
reset: Add Altera Arria10 SR Reset Controller
|
2017-03-15 12:19:11 +01:00 |
|
reset-ath79.c
|
headers: separate linux/mod_devicetable.h from linux/platform_device.h
|
2018-07-07 17:52:26 +02:00 |
|
reset-axs10x.c
|
headers: separate linux/mod_devicetable.h from linux/platform_device.h
|
2018-07-07 17:52:26 +02:00 |
|
reset-berlin.c
|
reset: berlin: make it explicitly non-modular
|
2016-10-24 10:43:40 +02:00 |
|
reset-hsdk.c
|
ARC: reset: remove the misleading v1 suffix all over
|
2017-09-18 13:02:03 +02:00 |
|
reset-imx7.c
|
ARM: SoC: late updates
|
2018-08-25 14:12:36 -07:00 |
|
reset-lantiq.c
|
reset: Add a reset controller driver for the Lantiq XWAY based SoCs
|
2017-09-04 21:19:02 +02:00 |
|
reset-lpc18xx.c
|
reset: lpc18xx: make it explicitly non-modular
|
2016-10-24 10:45:38 +02:00 |
|
reset-meson-audio-arb.c
|
reset: meson-audio-arb: Fix missing .owner setting of reset_controller_dev
|
2019-05-08 07:21:47 +02:00 |
|
reset-meson.c
|
reset: meson: enable level reset support on Meson8b
|
2018-02-16 15:32:09 +01:00 |
|
reset-oxnas.c
|
reset: oxnas: make it explicitly non-modular
|
2017-03-08 09:36:45 +01:00 |
|
reset-pistachio.c
|
reset: pistachio: make it explicitly non-modular
|
2017-03-08 09:36:45 +01:00 |
|
reset-qcom-aoss.c
|
reset: qcom: AOSS (always on subsystem) reset controller
|
2018-07-16 12:15:51 +02:00 |
|
reset-simple.c
|
reset: simple: export reset_simple_ops to be referred from modules
|
2018-07-16 12:15:54 +02:00 |
|
reset-simple.h
|
reset: socfpga: use the reset-simple driver
|
2017-10-18 15:51:02 +02:00 |
|
reset-stm32mp1.c
|
reset: stm32mp1: Enable stm32mp1 reset driver
|
2018-03-27 10:44:04 +02:00 |
|
reset-sunxi.c
|
reset: sunxi: use reset-simple driver
|
2017-10-17 15:35:24 +02:00 |
|
reset-ti-sci.c
|
reset: Add the TI SCI reset driver
|
2017-06-06 09:44:17 +02:00 |
|
reset-ti-syscon.c
|
treewide: devm_kzalloc() -> devm_kcalloc()
|
2018-06-12 16:19:22 -07:00 |
|
reset-uniphier-usb3.c
|
reset: uniphier: add USB3 core reset control
|
2018-07-16 12:15:55 +02:00 |
|
reset-uniphier.c
|
reset: uniphier: add reset control support for SPI
|
2018-07-19 11:19:47 +02:00 |
|
reset-zynq.c
|
reset: zynq: make it explicitly non-modular
|
2016-10-24 10:45:32 +02:00 |