aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <[email protected]>2020-07-17 18:42:17 +0200
committerDaniel Lezcano <[email protected]>2020-07-21 10:40:08 +0200
commit3f5a2cbe0f5c54adcada54a6a0567690241e7b3a (patch)
treec5c3465488fabdcfc53d81215ca4ce4f076c8b9b
parentd2a89b52839597c70746d9f46a21b1aab0a26c02 (diff)
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 <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Tested-by: Marek Szyprowski <[email protected]> Reviewed-by: Amit Kucheria <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--drivers/thermal/thermal_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index d2e5a223377a..007f9618e20a 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);