Xiaobing Luo
7763a79566
cpufreq: fix memory leak in sun50i_cpufreq_nvmem_probe
...
[ Upstream commit 1aa24a8f3b5133dae4bc1e57427e345445f3e902 ]
--------------------------------------------
unreferenced object 0xffff000010742a00 (size 128):
comm "swapper/0", pid 1, jiffies 4294902015 (age 1187.652s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<00000000b4dfebaa>] __kmalloc+0x338/0x474
[<00000000d6e716db>] sun50i_cpufreq_nvmem_probe+0xc4/0x36c
[<000000007d6082a0>] platform_probe+0x98/0x11c
[<00000000c990f549>] really_probe+0x234/0x5a0
[<000000002d9fecc6>] __driver_probe_device+0x194/0x224
[<00000000cf0b94fa>] driver_probe_device+0x64/0x13c
[<00000000f238e4cf>] __device_attach_driver+0xf8/0x180
[<000000006720e418>] bus_for_each_drv+0xf8/0x160
[<00000000df4f14f6>] __device_attach+0x174/0x29c
[<00000000782002fb>] device_initial_probe+0x20/0x30
[<00000000c2681b06>] bus_probe_device+0xfc/0x110
[<00000000964cf3bd>] device_add+0x5f0/0xcd0
[<000000004b9264e3>] platform_device_add+0x198/0x390
[<00000000fa82a9d0>] platform_device_register_full+0x178/0x210
[<000000009a5daf13>] sun50i_cpufreq_init+0xf8/0x168
[<000000000377cc7c>] do_one_initcall+0xe4/0x570
--------------------------------------------
if sun50i_cpufreq_get_efuse failed, then opp_tables leak.
Fixes: f328584f7bff ("cpufreq: Add sun50i nvmem based CPU scaling driver")
Signed-off-by: Xiaobing Luo <luoxiaobing0926@gmail.com>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-05-09 09:03:25 +02:00
..
2020-11-05 11:43:25 +01:00
2019-06-19 17:09:55 +02:00
2019-02-07 09:55:11 +05:30
2017-11-08 23:22:19 +01:00
2020-12-30 11:51:19 +01:00
2021-08-26 08:36:16 -04:00
2019-07-16 10:20:11 +02:00
2021-03-04 10:26:14 +01:00
2020-02-11 04:35:25 -08:00
2019-06-19 17:09:55 +02:00
2021-10-06 15:42:30 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2021-03-30 14:35:21 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-02-11 04:35:25 -08:00
2022-01-27 09:19:44 +01:00
2019-07-18 09:49:30 +02:00
2019-05-30 11:26:39 -07:00
2019-05-30 11:26:32 -07:00
2020-02-11 04:35:25 -08:00
2020-02-11 04:35:25 -08:00
2020-12-30 11:51:19 +01:00
2019-05-21 10:50:45 +02:00
2020-04-17 10:50:03 +02:00
2019-12-13 08:43:28 +01:00
2021-03-04 10:26:50 +01:00
2019-05-21 10:50:46 +02:00
2020-08-19 08:16:18 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-07-16 10:20:11 +02:00
2019-05-30 11:26:39 -07:00
2019-05-30 11:26:39 -07:00
2020-02-11 04:35:25 -08:00
2020-12-30 11:51:20 +01:00
2019-07-16 10:20:11 +02:00
2019-09-03 07:55:22 +05:30
2019-07-18 09:49:30 +02:00
2020-12-30 11:51:19 +01:00
2018-09-19 14:56:44 -07:00
2019-07-18 09:49:30 +02:00
2019-05-30 11:26:32 -07:00
2019-07-23 09:49:10 +02:00
2020-02-11 04:35:25 -08:00
2019-07-18 09:49:30 +02:00
2019-07-18 09:49:30 +02:00
2019-05-30 11:26:39 -07:00
2019-05-30 11:26:39 -07:00
2019-05-30 11:26:39 -07:00
2021-01-17 14:05:35 +01:00
2019-06-05 17:37:08 +02:00
2021-09-22 12:26:37 +02:00
2019-05-30 11:26:32 -07:00
2019-10-21 02:05:21 +02:00
2019-08-26 10:02:01 +02:00
2019-08-26 10:02:01 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:32 -07:00
2019-08-22 11:31:04 +05:30
2020-12-30 11:51:19 +01:00
2019-06-19 17:09:55 +02:00
2019-06-13 08:58:22 +05:30
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-07-18 09:49:30 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-07-18 09:49:30 +02:00
2019-06-19 17:09:55 +02:00
2019-07-18 09:49:30 +02:00
2019-07-16 10:20:11 +02:00
2019-07-18 09:49:30 +02:00
2019-05-30 11:26:32 -07:00
2019-03-04 11:19:14 +01:00
2020-12-30 11:51:20 +01:00
2019-06-19 17:09:07 +02:00
2020-02-11 04:35:25 -08:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-07-16 10:20:11 +02:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:39 -07:00
2019-05-30 11:26:39 -07:00
2019-05-30 11:26:39 -07:00
2019-05-30 11:26:39 -07:00
2020-12-30 11:51:19 +01:00
2022-05-09 09:03:25 +02:00
2017-07-22 02:20:59 +02:00
2019-07-16 10:20:11 +02:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:36:37 +02:00
2019-07-30 08:10:45 +05:30
2020-02-11 04:35:25 -08:00
2017-11-08 23:22:20 +01:00