Kishon Vijay Abraham I
533cdfe9cc
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 15:36:49 +01:00
..
2017-05-24 10:53:41 +02:00
2017-05-15 08:59:08 +02:00
2016-11-18 14:34:56 +01:00
2019-12-05 15:36:49 +01:00
2017-09-21 12:44:01 +02:00
2017-11-02 11:10:55 +01:00
2017-03-15 12:19:11 +01:00
2017-03-08 09:36:45 +01:00
2017-09-18 13:02:03 +02:00
2018-09-26 08:38:03 +02:00
2017-09-04 21:19:02 +02:00
2016-10-24 10:45:38 +02:00
2017-03-08 09:36:45 +01:00
2017-03-08 09:36:45 +01:00
2017-03-08 09:36:45 +01:00
2017-10-04 10:29:44 +02:00
2017-08-11 17:48:56 +02:00
2017-06-06 09:44:17 +02:00
2017-01-12 11:12:07 +01:00
2017-08-14 09:29:47 +02:00
2017-07-19 10:24:00 +02:00
2016-10-24 10:45:32 +02:00