Commit 3f5a2cbe authored by Daniel Lezcano's avatar Daniel Lezcano

thermal: core: Move initialization after core initcall

The generic netlink is initialized at subsys_initcall, so far after
the thermal init routine and the thermal generic netlink family
initialization.

On ŝome platforms, that leads to a memory corruption.

The fix was sent to netdev@ to move the genetlink framework
initialization at core_initcall.

Move the thermal core initialization to postcore level which is very
close to core level.
Reported-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Tested-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: default avatarAmit Kucheria <amit.kucheria@linaro.org>
Link: https://lore.kernel.org/r/20200717164217.18819-2-daniel.lezcano@linaro.org
parent d2a89b52
...@@ -1676,4 +1676,4 @@ static int __init thermal_init(void) ...@@ -1676,4 +1676,4 @@ static int __init thermal_init(void)
mutex_destroy(&poweroff_lock); mutex_destroy(&poweroff_lock);
return result; return result;
} }
core_initcall(thermal_init); postcore_initcall(thermal_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment