Skip to content

Commit 3f5a2cb

Browse files
committed
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]
1 parent d2a89b5 commit 3f5a2cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/thermal_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,4 +1676,4 @@ static int __init thermal_init(void)
16761676
mutex_destroy(&poweroff_lock);
16771677
return result;
16781678
}
1679-
core_initcall(thermal_init);
1679+
postcore_initcall(thermal_init);

0 commit comments

Comments
 (0)