From: Daniel Lezcano Date: Fri, 17 Jul 2020 16:42:17 +0000 (+0200) Subject: thermal: core: Move initialization after core initcall X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3f5a2cbe0f5c54adcada54a6a0567690241e7b3a;p=linux.git 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: Marek Szyprowski Signed-off-by: Daniel Lezcano Tested-by: Marek Szyprowski Reviewed-by: Amit Kucheria Link: https://lore.kernel.org/r/20200717164217.18819-2-daniel.lezcano@linaro.org --- diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index d2e5a223377af..007f9618e20a9 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -1676,4 +1676,4 @@ error: mutex_destroy(&poweroff_lock); return result; } -core_initcall(thermal_init); +postcore_initcall(thermal_init);